[Top][All Lists]

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

Re: proposal: edit-rectangle

From: Richard Stallman
Subject: Re: proposal: edit-rectangle
Date: Fri, 07 Oct 2016 16:31:00 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Also, after inserting the new rectangle, undo should restore buffer as
  > before, just need for this to add `buffer-disable-undo` in first fn and
  > `buffer-enable-undo` in second fn.

A smarter way to handle it is to scan the undo list at the end of
edit-rectangle, and convert those specific undo entries so that they
describe the same changes as having been made directly in the buffer.
That way, you could undo those individual changes one by one.

  > The results are a bit awkward if you `restore-rectangle' with more lines
  > than you started with, but I don't have any ideas offhand for
  > obviously better behavior.

Perhaps duplicate the last line of the surrounding text so that you have
enough lines to put the rectangle into.

Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.

reply via email to

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