emacs-devel
[Top][All Lists]
Advanced

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

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


From: Michael Heerdegen
Subject: `insert' inside `with-current-buffer' deactivating the mark?
Date: Mon, 04 Mar 2013 15:19:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi,

if I eval the following in emacs -Q:

--8<---------------cut here---------------start------------->8---
(defun insert-in-some-other-buffer ()
  (with-current-buffer (get-buffer-create "*Test*")
    (insert ".")))

(add-hook 'post-command-hook 'insert-in-some-other-buffer)
--8<---------------cut here---------------end--------------->8---

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?


Thanks,

Michael.



reply via email to

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