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


Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 3350 <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#3350: 23.0.93; Deactivation of region by the insert function
Date: Fri, 22 May 2009 15:10:07 -0400
> 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) ...)


        Stefan




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.