From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: `insert' inside `with-current-buffer' deactivating the mark?
Date: Mon, 04 Mar 2013 15:19:11 +0100 [thread overview]
Message-ID: <87mwujl02o.fsf@web.de> (raw)
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.
next reply other threads:[~2013-03-04 14:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 14:19 Michael Heerdegen [this message]
2013-03-04 14:48 ` `insert' inside `with-current-buffer' deactivating the mark? Christopher Schmidt
2013-03-04 14:59 ` Michael Heerdegen
2013-03-04 18:21 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwujl02o.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.