From: Okam <okamsn@protonmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Command `vc-annotate' runs `help-mode-hook'?
Date: Fri, 16 Oct 2020 21:06:10 +0000 [thread overview]
Message-ID: <1ab7d3c0-a11e-f464-2a37-c2b9460c3d38@protonmail.com> (raw)
In-Reply-To: <87a6wpqpic.fsf@web.de>
On 10/14/20 2:40 AM, Michael Heerdegen wrote:
>> I was trying to add a function to `help-mode-hook' to automatically
>> rename the "*Help*" buffer.
>
> May I ask why you want to rename it? I guess it could cause other
> problems.
I found a package that renamed Help buffers to include the name of the
variable/function being shown, but saw that this broke `vc-annotate'
This is helpful when I want to refer to multiple "*Help*" buffers.
>> Why does `vc-annotate' run `help-mode-hook'
>
> That probably comes from `vc-annotate' calling
> `with-output-to-temp-buffer'. I don't recall why it had been decided
> that this macro performs help-mode setup, but it does.
Thank you.
>> and is there a good way of detecting this and similar cases?
>
> You could look at the buffer name? The answer depends on the set of
> cases you want to handle.
This makes sense. I wasn't sure whether doing so would also have
unexpected behavior.
With thanks,
Okam
next prev parent reply other threads:[~2020-10-16 21:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-13 1:10 Command `vc-annotate' runs `help-mode-hook'? Okam
2020-10-14 6:40 ` Michael Heerdegen
2020-10-16 21:06 ` Okam [this message]
2020-10-16 22:43 ` 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=1ab7d3c0-a11e-f464-2a37-c2b9460c3d38@protonmail.com \
--to=okamsn@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.
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).