unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Helmut Eller <eller.helmut@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: help-window-select and info-lookup-symbol
Date: Sun, 26 Jul 2009 13:00:33 +0200	[thread overview]
Message-ID: <4A6C3751.5050501@gmx.at> (raw)
In-Reply-To: <m21vo33eyx.fsf@gmail.com>

 >> IIUC in that case a `display-buffer' following another would wipe out
 >> the variable set by the former.  The problem is with recognizing whether
 >> the buffer `display-buffer' is going to replace in some window was a
 >> buffer the user switched to "manually" or "automatically".  In the
 >> former case `display-buffer' should remember the buffer in its
 >> `old-buffer' variable while in the latter it should leave that variable
 >> alone.  Currently `display-buffer' has no means to distinguish these
 >> cases.
 >
 > 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.

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.

martin




  reply	other threads:[~2009-07-26 11:00 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 [this message]
2009-07-26 12:30                       ` 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

  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=4A6C3751.5050501@gmx.at \
    --to=rudalics@gmx.at \
    --cc=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 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).