emacs-devel
[Top][All Lists]
Advanced

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

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


From: Christopher Schmidt
Subject: Re: `insert' inside `with-current-buffer' deactivating the mark?
Date: Mon, 4 Mar 2013 14:48:23 +0000 (GMT)

Michael Heerdegen <address@hidden> writes:
> if I eval the following in emacs -Q:
> (defun insert-in-some-other-buffer ()
>   (with-current-buffer (get-buffer-create "*Test*")
>     (insert ".")))
>
> (add-hook 'post-command-hook 'insert-in-some-other-buffer)
>
> the mark in any buffer is deactivated immediately after each command.
> Looks like a bug to me - the use of `with-current-buffer' should
> prevent influencing any other buffer than *Test*.  What am I missing?

    deactivate-mark

        Christopher



reply via email to

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