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: Stefan Monnier
Subject: bug#16752: 24.3.50; pp-to-string deactivates mark
Date: Mon, 17 Feb 2014 15:27:49 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>> > My suggestion would free implementors of pp-to-string etc. from doing
>> > that in every place where they use temporary buffers, which is a very
>> > frequent paradigm in Emacs.
>> But it'll break code like
>> 
>> (let ((buf (current-buffer)))
>> (with-temp-buffer
>> ...
>> (with-current-buffer buf
>> (insert "toto"))
>> ...))
> And that is a problem because..?

Because it breaks some code.
After thinking some more about it, I wonder, tho: why don't we just make
deactivate-mark buffer-local?


        Stef





reply via email to

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