drym-org / symex.el

An intuitive way to edit Lisp symbolic expressions ("symexes") structurally in Emacs
Other
271 stars 22 forks source link

Idempotence of null operations #92

Open countvajhula opened 1 year ago

countvajhula commented 1 year ago

Certain commands insert extra characters that are useful and commonly desired when making changes. But if the command was executed accidentally or if the user changed their mind, we want to ensure that canceling the command restores the buffer to its original state. This ensures that null commands are idempotent, providing a more cohesive experience. The following commands should be reviewed in this connection:

(I)nsert-before (A)ppend-after (w)rap (W)rap

and possibly even: (o)pen-below (O)pen-above (c)hange (C)hange-remaining (s)ubstitute (i.e. replace)