From: Michael Heerdegen <michael_heerdegen@web.de>
To: Okam <okamsn@protonmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Command `vc-annotate' runs `help-mode-hook'?
Date: Wed, 14 Oct 2020 08:40:27 +0200 [thread overview]
Message-ID: <87a6wpqpic.fsf@web.de> (raw)
In-Reply-To: <fbff9e68-f4e5-9e56-bcdf-fb6273045022@protonmail.com> (Okam's message of "Tue, 13 Oct 2020 01:10:27 +0000")
Okam <okamsn@protonmail.com> writes:
> Hello,
>
> 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.
> 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.
> 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.
Regards,
Michael.
next prev parent reply other threads:[~2020-10-14 6:40 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 [this message]
2020-10-16 21:06 ` Okam
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=87a6wpqpic.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=okamsn@protonmail.com \
/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).