From: Juri Linkov <juri@linkov.net>
To: martin rudalics <rudalics@gmx.at>
Cc: 35487@debbugs.gnu.org, Tak Kunihiro <homeros.misasa@gmail.com>,
tkk@misasa.okayama-u.ac.jp
Subject: bug#35487: Make visiting function from help-mode more customizable
Date: Sat, 11 May 2019 23:42:29 +0300 [thread overview]
Message-ID: <87woiwbu4q.fsf@mail.linkov.net> (raw)
In-Reply-To: <d56f18d7-87b6-41ee-3844-491fee466c8b@gmx.at> (martin rudalics's message of "Fri, 10 May 2019 10:00:30 +0200")
>> As a side effect, `C-h f' opens *Help* buffer in the same window. I
>> still want to open *Help* in other window (original behavior). Do you
>> have idea to do so?
>
> You could try with
>
> (defun display-buffer-condition-from-help (_buffer-name _action)
> (string-match-p "\\`\\*\\(Help\\)\\*\\(\\|<[0-9]+>\\)\\'"
> (buffer-name (window-buffer))))
I confirm this is more correct.
BTW, I observed one strange effect: after the *Help* buffer is displayed
on one window, the next time it's always displayed in the same window
where it was displayed previously:
0. emacs -Q
1. C-h f car RET
2. C-x o
3. C-h i
4. C-h f car RET
is displayed in the same window, whereas
5. C-h f cdr RET
is displayed in another window
next prev parent reply other threads:[~2019-05-11 20:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-29 12:30 bug#35487: Make visiting function from help-mode more customizable Tak Kunihiro
2019-04-29 19:54 ` Juri Linkov
2019-05-09 23:10 ` Tak Kunihiro
2019-05-10 8:00 ` martin rudalics
2019-05-11 20:42 ` Juri Linkov [this message]
2019-05-16 8:52 ` Tak Kunihiro
2019-05-16 20:25 ` Stefan Monnier
2019-05-17 10:03 ` Tak Kunihiro
2019-05-28 21:09 ` Juri Linkov
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=87woiwbu4q.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=35487@debbugs.gnu.org \
--cc=homeros.misasa@gmail.com \
--cc=rudalics@gmx.at \
--cc=tkk@misasa.okayama-u.ac.jp \
/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).