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 13:16:49 +0200

> From: Helmut Eller <eller.helmut@gmail.com>
> Cc: 16752@debbugs.gnu.org
> Date: Fri, 14 Feb 2014 12:02:33 +0100
> 
> >> (list deactivate-mark
> >>       (pp-to-string '1)
> >>       deactivate-mark)
> >> 
> >> returns (nil "1" t).  Deactivating the mark is a surprising and
> >> unnecessary side effect.
> >
> > _Any_ change to _any_ buffer will set deactivate-mark, which is a
> > global variable.
> 
> What has that do to with pp-to-string?  I didn't ask for _any_ change to
> _any_ buffer.

See pp-buffer, which is called by pp-string.  You asked for pp-string,
which does its job using a temporary buffer.





reply via email to

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