From: Nick Roberts <nickrob@snap.net.nz>
Cc: Daniel Brockman <daniel@brockman.se>, emacs-devel@gnu.org
Subject: Re: `overlay-arrow-position' should be automatically buffer-local
Date: Wed, 19 Oct 2005 19:13:48 +1300 [thread overview]
Message-ID: <17237.58396.519852.507483@kahikatea.snap.net.nz> (raw)
In-Reply-To: <87irvucjdg.fsf@cut.bc.hsia.telus.net>
> I believe the variable `overlay-arrow-position' should
> automatically become buffer-local whenever it is set.
>
> It appears that Gnus fails to do this manually, instead
> ending up setting the global value to a marker that refers
> to the Gnus summary buffer, which doesn't make sense.
>
> In fact, I see no reason to ever set the global value of
> this variable. In any case, it should not be the default.
Have you found this a problem in practice?
I think Gnus and Edebug are the only two features that now use the global
values of overlay-arrow-position (so they would steal the arrow from each
other if they were both active at the same time).
> I recently noticed when adding an overlay arrow to rcirc that making
> it `overlay-arrow-position' buffer local *does* work (you can get an
> arrow in multiple buffers), even though (elisp)Overlay Arrow says:
>
> - Variable: overlay-arrow-position
>
> [...]
>
> The overlay string is displayed only in the buffer that this marker
> points into. Thus, only one buffer can have an overlay arrow at
> any given time.
>
> Which I think was true in 21.
I think you've always been able to make overlay-arrow-position buffer-local.
The problem arises when two arrows try to display in the _same_ buffer, then
the local value masks the global value. Perhaps this will never happen in
Gnus, but in case it does, a good way is to use overlay-arrow-variable-list
(which _is_ new to to Emacs 22):
(defvar gnus-overlay-arrow-position nil)
At startup:
(setq gnus-overlay-arrow-position nil)
(add-to-list 'overlay-arrow-variable-list 'gnus-overlay-arrow-position)
On finishing:
(delq 'gnus-overlay-arrow-position overlay-arrow-variable-list))
Nick
next prev parent reply other threads:[~2005-10-19 6:13 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-19 2:37 `overlay-arrow-position' should be automatically buffer-local Daniel Brockman
2005-10-19 2:48 ` Ryan Yeske
2005-10-19 4:22 ` Daniel Brockman
2005-10-19 20:16 ` Richard M. Stallman
2005-10-19 6:13 ` Nick Roberts [this message]
2005-10-19 6:34 ` Ryan Yeske
2005-10-19 7:33 ` Nick Roberts
2005-10-19 20:15 ` Richard M. Stallman
2005-10-19 8:44 ` Kim F. Storm
2005-10-19 20:44 ` Ryan Yeske
2005-10-19 21:02 ` Nick Roberts
2005-10-19 21:29 ` Kim F. Storm
2005-10-20 1:43 ` Miles Bader
2005-10-20 4:45 ` Nick Roberts
2005-11-10 4:48 ` Miles Bader
2005-11-10 6:51 ` Multiple debugging sessions [was Re: `overlay-arrow-position' should be automatically buffer-local] Nick Roberts
2005-11-10 8:39 ` Multiple debugging sessions Kim F. Storm
2005-11-10 11:06 ` Miles Bader
2005-11-10 12:34 ` Kim F. Storm
2005-11-10 12:43 ` Miles Bader
2005-11-10 11:19 ` Multiple debugging sessions [was Re: `overlay-arrow-position' should be automatically buffer-local] Miles Bader
2005-11-10 18:08 ` Multiple debugging sessions Stefan Monnier
2005-11-11 1:00 ` Nick Roberts
2005-11-11 4:34 ` Stefan Monnier
2005-11-10 19:12 ` Nick Roberts
2005-11-10 22:10 ` Andreas Schwab
2005-11-12 3:38 ` Richard M. Stallman
2005-11-12 4:56 ` Nick Roberts
2005-11-12 5:53 ` Miles Bader
2005-11-12 6:50 ` Eli Zaretskii
2005-11-12 21:23 ` Richard M. Stallman
2005-11-12 22:15 ` Nick Roberts
2005-11-11 0:31 ` Miles Bader
2005-11-11 1:03 ` Miles Bader
2005-11-11 9:12 ` Kim F. Storm
2005-11-11 19:34 ` Juri Linkov
2005-11-11 3:50 ` Nick Roberts
2005-11-11 4:36 ` Stefan Monnier
2005-11-11 7:41 ` Richard M. Stallman
2005-11-11 9:22 ` Eli Zaretskii
2005-11-12 3:38 ` Richard M. Stallman
2005-11-11 8:30 ` Kim F. Storm
2005-11-11 9:46 ` David Kastrup
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=17237.58396.519852.507483@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=daniel@brockman.se \
--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).