[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:39:31 +0200 |
> From: Helmut Eller <eller.helmut@gmail.com>
> Cc: 16752@debbugs.gnu.org
> Date: Fri, 14 Feb 2014 12:23:02 +0100
>
> On Fri, Feb 14 2014, Eli Zaretskii wrote:
>
> >> 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.
>
> So you're saying that it's not a bug that pp-to-string modifies
> deactivate-mark?
No, of course not. I just described how this happens and why. The
fix should be almost trivial, I think.
bug#16752: 24.3.50; pp-to-string deactivates mark, Stefan Monnier, 2014/02/14
- bug#16752: 24.3.50; pp-to-string deactivates mark, Eli Zaretskii, 2014/02/14
- bug#16752: 24.3.50; pp-to-string deactivates mark, Stefan Monnier, 2014/02/14
- bug#16752: 24.3.50; pp-to-string deactivates mark, Eli Zaretskii, 2014/02/15
- bug#16752: 24.3.50; pp-to-string deactivates mark, Stefan Monnier, 2014/02/16
- bug#16752: 24.3.50; pp-to-string deactivates mark, Eli Zaretskii, 2014/02/17
- bug#16752: 24.3.50; pp-to-string deactivates mark, Stefan Monnier, 2014/02/17
- bug#16752: 24.3.50; pp-to-string deactivates mark, Eli Zaretskii, 2014/02/17