unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Help cross reference to source file
Date: Tue, 11 Jul 2006 00:29:33 -0400	[thread overview]
Message-ID: <jwv3bd83gvs.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <EIENLHALHGIMHGDOLMIMOEIPCJAA.drew.adams@oracle.com> (Drew Adams's message of "Mon, 10 Jul 2006 10:48:55 -0700")

>> Even if help can't take me to the right place in the source file,
>> I think it should open the file - and provide the error message,
>> inviting me to search for it in the file.

>> Does this give behavior you like?
>> + 	      (switch-to-buffer (current-buffer))

>     This burps if the selected window is a minibuffer or dedicated window.
>     I think we should mark switch-to-buffer as "not for use from
>     elisp" (like insert-buffer and others).

> I sympathize with (and share) the problem, but I disagree that
> switch-to-buffer shouldn't be used from Lisp (unless a similar functionality
> is made available in another function).

> The real problem is general: make Emacs play well with dedicated windows and
> with non-nil pop-up-frames.

> In this case, the code probably needs to explicitly deal with the problem
> you raise, working around it. In the future, perhaps such code to side-step
> this kind of problem could be made generally available, as part of a
> different function that does
> `careful-switch-to-buffer-taking-into-account-corner-cases'.

In this case, the normal control flow displays the buffer somehow so I think
that the right fix is to try to preserve this normal control flow (probably
catching the error and re-raising it later when the buffer has been
displayed).


        Stefan

  reply	other threads:[~2006-07-11  4:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-09  1:35 Help cross reference to source file Drew Adams
2006-07-09 19:04 ` Richard Stallman
2006-07-09 19:55   ` Drew Adams
2006-07-10 16:41   ` Stefan Monnier
2006-07-10 17:48     ` Drew Adams
2006-07-11  4:29       ` Stefan Monnier [this message]
2006-07-11 18:16         ` Richard Stallman
2006-07-11  5:51       ` Richard Stallman
2006-07-11 18:14       ` Drew Adams
2006-07-12 15:36         ` Richard Stallman
2006-07-11  5:51     ` Richard Stallman
2006-07-11 12:14       ` 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

  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=jwv3bd83gvs.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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).