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: Helmut Eller
Subject: bug#16752: 24.3.50; pp-to-string deactivates mark
Date: Fri, 14 Feb 2014 19:27:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

On Fri, Feb 14 2014, Eli Zaretskii wrote:

>> 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.

4- Introduce something like buffer-disable-undo that disables this
automatic deactivate-mark updating.  BTW, with-temp-buffer should
disable undo by default.

Helmut







reply via email to

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