Emacs 24.3 had a nice way of inserting text into rectangles:
Select rectangle.
C-x r t
<string-to-be-inserted>
RET
This doesn't seem to work in Emacs 24.4. I tried rectangle-mark-mode
using C-x SPC
. I could managed to insert a yanked rectangle, but how does one insert fresh text into the rectangle?
Thanks in advance!
C-x r t
works fine for me for inserting fresh text. Start Emacs viaemacs -Q
(which will keep your personal configuration from being loaded) and try again. Does it work?rectangle-mark-mode
.rectangle-mark-mode
is a fairly young feature; it was introduced in Emacs 24.4. The NEWS file says: "New commandC-x SPC
(rectangle-mark-mode
) makes a rectangular region. Most commands are still unaware of it, but kill/yank do work on the rectangle." Based on this I assume what you are trying to do is not possible (yet) withrectangle-mark-mode
. You might want to look intocua-mode
(built-in) ormultiple-cursors
..emacs
file, the following method can help you identify problematic code quickly: Recursively bisect your.emacs
: Comment out half of it and restart Emacs. If you can reproduce the problem, the code that's causing it is in the portion of your init-file that's not commented out (and vice versa). Repeat the process for the portion of the code that you know is causing the issue: Comment out half of it, restart, check for problem. Keep going until you've narrowed the problem down to a few lines; this shouldn't take too long.