[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help cross reference to source file

From: Stefan Monnier
Subject: Re: Help cross reference to source file
Date: Tue, 11 Jul 2006 00:29:33 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]