[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A plea for sanity from a frustrated hacker.
From: |
Juri Linkov |
Subject: |
Re: A plea for sanity from a frustrated hacker. |
Date: |
Sun, 10 Jun 2007 17:28:48 +0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
>> BTW, I have another frustration with this function. I like to view
>> the Help buffer and visit source code from it in the *same* window.
>> The former is achieved by
>
>> (add-hook 'same-window-regexps "\\*Help\\*\\(\\|<[0-9]+>\\)")
>
>> But the latter is impossible since as can be seen in code above
>> `help-function-def' calls the function `pop-to-buffer' which displays
>> the source code buffer in a different window.
>
> For what it's worth, I'd hate the behavior you like.
> So I don't think the code is wrong because the behavior should not be
> determined by the code but by user preferences. I.e. the problem is that
> the behavior of pop-to-buffer is not yet configurable enough.
That's exactly what I meant. pop-to-buffer doesn't allow configuring its
behavior to display the source buffer in the same Help window. I don't argue
for changing its default behavior.
How about adding a new user option, e.g `same-window-regexps-from'?
By analogy with `same-window-regexps' it will contain a list of regexps
saying that displaying a buffer from these buffers should appear in the
same window.
--
Juri Linkov
http://www.jurta.org/emacs/