From: Dmitry Antipov <dmantipov@yandex.ru>
To: Emacs development discussions <emacs-devel@gnu.org>
Cc: Eli Zaretskii <eliz@gnu.org>
Subject: Why buffer_shared is a mistake
Date: Thu, 06 Dec 2012 20:02:30 +0400 [thread overview]
Message-ID: <50C0C196.2020400@yandex.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
Look at the screenshot. Here 'A' is an overlay highlighted with font-lock-keyword-face
in buffer *scratch*. What happens if I type C-x C-e (eval-last-sexp) staying where the
cursor is?
1) Redisplay is invoked with "xaxa" as current_buffer, and buffer_shared is recalculated
to 2 because "xaxa" is displayed in 2 windows. On leaving redisplay_internal, buffer_shared
is 2.
2) modify_overlay is called for "*scratch*", and this function still sees buffer_shared as 2
(unchanged since last redisplay invocation), although *scratch* is displayed in the only
window.
3) ???
IIUC, as the minimum minorum, buffer_shared should be reset to 0 after leaving redisplay_internal.
Or it should be a per-buffer field.
Dmitry
[-- Attachment #2: redisplay.png --]
[-- Type: image/png, Size: 36204 bytes --]
next reply other threads:[~2012-12-06 16:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 16:02 Dmitry Antipov [this message]
2012-12-08 13:58 ` Why buffer_shared is a mistake Eli Zaretskii
2012-12-10 7:29 ` Dmitry Antipov
2012-12-10 8:18 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50C0C196.2020400@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=eliz@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).