[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `insert' inside `with-current-buffer' deactivating the mark?

From: Stefan Monnier
Subject: Re: `insert' inside `with-current-buffer' deactivating the mark?
Date: Mon, 04 Mar 2013 13:21:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Thanks.  Yes, I know `deactivate-mark' - but why is it necessary here?
> Why does changing another buffer deactivate the mark in the current
> buffer?

Because deactivate-mark is a global variable.  Note also that the mark is
not deactivated in some cases where it "should":

   M-: (progn (insert "a") (set-buffer (other-buffer))) RET

IOW the auto-deactivation is just a coarse heuristic, which only covers
most cases, but not all.


reply via email to

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