emacs-devel
[Top][All Lists]
Advanced

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

Re: save-excursion and the mark


From: Andreas Röhler
Subject: Re: save-excursion and the mark
Date: Tue, 24 Feb 2015 17:05:10 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.4.0

On 23.02.2015 05:44, Stefan Monnier wrote:

`save-excursion' is defined to save&restore the mark (as well as its
being active or not).

But I'm having a hard time finding a piece of code where we actually
make use of this.  Can someone point me to such code (either in Emacs or
in some external package)?  I.e. point me to code which would misbehave
if save-excursion were to stop saving&restoring the mark (and/or its
activation status).


         Stefan



Hi Stefan,

See for example indent-code-ridigly.

IMO one of the most valuable functions in Emacs. Useful in all cases, where the 
extend of region is changed.
Fill-commands will use this - that way updating the users mark-(stack?).

Andreas





reply via email to

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