From: Helmut Eller <eller.helmut@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: help-window-select and info-lookup-symbol
Date: Sun, 26 Jul 2009 14:30:25 +0200 [thread overview]
Message-ID: <m2d47ny6ce.fsf@gmail.com> (raw)
In-Reply-To: 4A6C3751.5050501@gmx.at
* martin rudalics [2009-07-26 13:00+0200] writes:
>> I was thinking that a new function or macro would delete the
>> buffer-local variable before displaying the buffer, something like
>> with-help-window. display-buffer would be called in the process but
>> display-buffer would know nothing about the buffer-local variable.
>
> The functions that could safely decide whether a buffer-local-variable
> shall be deleted is the "any function calling `display-buffer' but the
> help/info type ones". It's impossible to enumerate them all because
> someone might add a new one tomorrow.
I think we aren't talking with each other. If there is a (single)
function to initialize help buffers, let's call it display-help-buffer,
then there is exactly one function to enumerate. The callers of
display-help-buffer don't count.
> What could be done is provide a variable `do-not-wipe-out-old-value'
> which is normally nil but the help/info type functions bind to t around
> their `display-buffer' calls. And `display-buffer' wouldn't wipe out
> the old value if that variable is t.
display-buffer doesn't need to know what display-help-buffer does with
buffer-local variables. Actually, display-buffer is already complicated
enough that it would be better to keep that separated.
Helmut
prev parent reply other threads:[~2009-07-26 12:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-19 16:24 help-window-select and info-lookup-symbol Helmut Eller
2009-07-20 9:32 ` martin rudalics
2009-07-21 12:33 ` Helmut Eller
2009-07-21 13:27 ` martin rudalics
2009-07-21 13:51 ` Helmut Eller
2009-07-21 14:12 ` martin rudalics
2009-07-21 15:07 ` Helmut Eller
2009-07-22 10:11 ` martin rudalics
2009-07-22 10:28 ` Helmut Eller
2009-07-26 10:01 ` martin rudalics
2009-07-26 10:39 ` Helmut Eller
2009-07-26 11:00 ` martin rudalics
2009-07-26 12:30 ` Helmut Eller [this message]
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=m2d47ny6ce.fsf@gmail.com \
--to=eller.helmut@gmail.com \
--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.