GNU bug report logs - #3350
23.0.93; Deactivation of region by the insert function

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Fri, 22 May 2009 12:50:03 UTC

Severity: minor

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 3350 <at> debbugs.gnu.org
Subject: bug#3350: 23.0.93; Deactivation of region by the insert function
Date: Fri, 22 May 2009 21:24:13 +0200
On Fri, May 22, 2009 at 9:10 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> Then try activating the region with S-<arrow key>. This does not work.
>> However if the (insert ...) statement in msgtrc is commented out then
>> it works.
>
> That's because deativate-mark is a global variable, so
> a buffer-modification in one buffer is treated identically (w.r.t
> clearing the mark) as a modification in any other buffer.
>
>> I have not tested if this is a regression from Emacs 22.
>
> I don't think anything has changed in this regard.
> Just wrap the code in (let (deactivate-mark) ...)

Thanks, I see.  But it is pretty surprising ...

What is the reason that deactivate-mark is not buffer local?




This bug report was last modified 12 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.