[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: two more emacs questions

From: vb
Subject: Re: two more emacs questions
Date: Sat, 18 Nov 2006 10:39:09 -0800

Another emacs annoyance (at least for us, unfortunate users of other,
less priviledged editors ;-)) is its handling of undo. It does not

May I ask which editor?

crisp (as in has been doing this for at least twelve years now...


consider highligting of the part of the file (like setting marks
around a block of code) a separate operation. Say I highlighted a 10
line block, cut it, moved the cursor to another place in the file and
pasted the block there. Then I wanted to actually decrease the amount
of moved code. I hit undo a few times, it does put the code back where
it came from, but it skips the highlighting step, so at this time, if
I wanted to move a 9 line block instead of 10 - I need to highlight
the entire block again instead of just shrinking the highlighted area

I can only offer a workaround (or a change of working habits):

0.) Paste the 10 lines: C-y or with middle mouse button.
1.) Kill the superfluous 10th line.
2.) Go back where you you killed the 10 lines C-u C-SPC C-u C-SPC
3.) Type C-y again

by a line. Is there a way to make it consider highligting a part of
the command sequence and folow it in the undo path?
by a line. Is there a way to make it consider highligting a part of

A good question, I hope others can answer it.

   Best wishes

   H. Dieter Wilhelm
   Darmstadt, Germany

reply via email to

[Prev in Thread] Current Thread [Next in Thread]