From: Michael Heerdegen <michael_heerdegen@web.de>
To: 15457@debbugs.gnu.org
Subject: bug#15457: 24.3.50; buffer local `window-point-insertion-type'
Date: Tue, 24 Sep 2013 19:18:59 +0200 [thread overview]
Message-ID: <87d2nycf3w.fsf@web.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]
Hello,
while experimenting with my logging mode, I stumbled over an
inconsistency regarding `window-point-insertion-type'. Recipe from
emacs -Q:
(1) Eval the attached defun
(2a) Eval (window-point-insertion-type-test t)
Result: After hitting RET (or C-g), window-point of the second window is
restored to the value it had before the recursive edit (i.e. 1 in this
case).
Now, repeat the recipe, but with
(2b) Eval (window-point-insertion-type-test nil)
Result: window-point in the second window remains at the end of the
buffer.
`window-point-insertion-type' is always bound to t in the test buffer;
the difference between the two recipes is just that it is set to t
buffer-locally in (2a), and globally in (2b). I would expect that the
behavior is identical for both recipes.
BTW, for my mode, I want the behavior of (2b), but, of course, without
modifying a global variable binding. let-binding also doesn't help.
Thanks,
Michael.
[-- Attachment #2: insertion-type-bug.el --]
[-- Type: application/emacs-lisp, Size: 815 bytes --]
[-- Attachment #3: Type: text/plain, Size: 231 bytes --]
In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.4)
of 2013-09-24 on drachen
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description: Debian GNU/Linux testing (jessie)
next reply other threads:[~2013-09-24 17:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 17:18 Michael Heerdegen [this message]
2014-04-16 14:00 ` bug#15457: 24.3.50; buffer local `window-point-insertion-type' 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=87d2nycf3w.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=15457@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.