bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#16752: 24.3.50; pp-to-string deactivates mark


From: Eli Zaretskii
Subject: bug#16752: 24.3.50; pp-to-string deactivates mark
Date: Fri, 14 Feb 2014 20:17:48 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Fri, 14 Feb 2014 12:42:25 -0500
> Cc: 16752@debbugs.gnu.org
> 
> 1- let-bind deactivate-mark in functions like pp-to-string so as to
>    eliminate those spurious deactivations.  But there can be many of
>    them, and it doesn't solve the problem where the buffer-modification
>    is done in a non-temporary buffer.
> 2- make deactivate-mark buffer-local.  This is "The Right Way" but
>    might introduce new problems.
>    E.g. we really should deactivate the mark in all the buffers that
>    have their deactivate-mark set.

3- Save and restore deactivate-mark inside with-temp-buffer, which
   will probably solve 99.99% of these unexpected side effects.





reply via email to

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