Posted by: rydow | September 17, 2007

Selective undo in emacs

Sometimes it is handy to to be able to undo in just a specific region. You have done a lot of editing and the code broke in a specific function which of course used to work…

The trick is to do C-<space> in the beginning of the function and moving down to the end of the function and pressing C-u C-_ to undo changes only in the region you have marked.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: