Timeline for Why is a TAB character added when using kill-rectangle and yank-rectangle to insert multiple rows into an org-mode table?
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 12, 2021 at 18:26 | comment | added | doltes | In this GIF. You can see that a TAB is indeed (as reported by what-cursor-position (C-x =)) inserted after pressing C-x r y. However, after C-c C-c is pressed, the table is well aligned. Note that emacs was started with -q. I'm using Emacs 27.1. | |
| Jan 10, 2021 at 23:16 | history | edited | chr | CC BY-SA 4.0 | Update reproducability |
| Jan 10, 2021 at 10:12 | comment | added | chr | I just downloaded Emacs 27.1-1 on macOS and tested it. There, with or without -q, a TAB is inserted when yanking, but C-c C-c replaces the TAB with spaces so the table borders line up. However, if I use copy-rectangle-on-kill, when yanking I do not get a TAB. So when trying to reproduce it's good to highlight TABs, and pay attention to if the second row is 1234567 or 12345678. It seems it's only in the latter case you get a TAB character. | |
| Jan 10, 2021 at 10:06 | comment | added | chr | Not sure what's going on. Just now I could reproduce it on version 26.3 using emacs -Q but not emacs. Using emacs -Q, the yank command inserts a TAB. Using emacs does not insert a TAB. | |
| Jan 9, 2021 at 10:49 | comment | added | chr | Ok, get's weirder... Turns out my original Emacs was started with 'emacs -q'. I don't remember why at all. However, if I start with emacs -q I can replicate the behaviour. I can also replicate the behaviour on another computer (also version 26.3). I also could replicate on a third computer. Could you please give it a try with '-q'? Note: Don't do my mistake an try and replicate with only '1234567', it needs eight characters on the second row. | |
| Jan 9, 2021 at 10:41 | comment | added | chr | Hmm, this is weird. I am unable to replicate in a new Emacs. However, I can still replicate the behaviour in my old running instance of Emacs (version 26.3), that was started on 4th of January. The laptop has been up for 20 days. And I did mess a bit with the Emacs configuration relatively recently, e.g. pulling in new versions of 'org' and 'org-plus-contrib'. So I may well have done something to e.g. cause an invalid configuration. My apologies for not testing in a fresh Emacs before posting! | |
| Jan 9, 2021 at 0:49 | comment | added | doltes | Same here. I started Emacs 27.1 with emacs -Q and didn't get the "Oops, still unaligned." part. @chr could you please start Emacs by executing emacs -Q and tell us whether you still get the error? | |
| Jan 9, 2021 at 0:13 | comment | added | phils | I can't replicate the "Oops, still unaligned." in Emacs 27.1 with its standard org version. It aligns it correctly. GNU Emacs 27.1, Org mode version 9.3. | |
| Jan 8, 2021 at 19:20 | history | edited | Drew | CC BY-SA 4.0 | deleted 125 characters in body; edited tags; edited tags |
| Jan 8, 2021 at 9:03 | history | asked | chr | CC BY-SA 4.0 |