all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleh <o.krehel@tue.nl>
To: 16728@debbugs.gnu.org
Subject: bug#16728: 24.3.50; bug? (with-temp-buffer (insert "foo")) deactivates mark in current buffer
Date: Wed, 12 Feb 2014 09:53:12 +0100	[thread overview]
Message-ID: <87fvnok8zr.fsf@tue.nl> (raw)

I'm not sure if it's a bug, that's why I'm asking.
To reproduce, in *scratch* `mark-whole-buffer` and `eval-expression`

    (with-temp-buffer (insert "foo"))

it deactivates mark, although this doesn't:

    (with-temp-buffer (forward-char 1))

and this doesn't (assuming there are two windows with different
buffers):

    (progn (other-window 1) (insert "foo"))

although this does:

    (progn (other-window 1) (insert "foo") (other-window 1))

although this doesn't:

    (progn (other-window 1) (forward-char 1) (other-window 1))

I realize that there's the `deactivate-mark` variable, but I think
it would be better if operations on other buffers would be
consistent in not modifying the mark in current buffer.

regards,
Oleh












             reply	other threads:[~2014-02-12  8:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12  8:53 Oleh [this message]
2014-02-12 11:54 ` bug#16728: 24.3.50; bug? (with-temp-buffer (insert "foo")) deactivates mark in current buffer Helmut Eller
2014-02-14 17:21   ` Stefan Monnier
2014-02-14 18:12     ` Helmut Eller

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=87fvnok8zr.fsf@tue.nl \
    --to=o.krehel@tue.nl \
    --cc=16728@debbugs.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.