From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Command `vc-annotate' runs `help-mode-hook'? Date: Wed, 14 Oct 2020 08:40:27 +0200 Message-ID: <87a6wpqpic.fsf@web.de> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33938"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Okam Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 14 08:48:19 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSaaB-0008jN-3R for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 08:48:19 +0200 Original-Received: from localhost ([::1]:55590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSaa9-0004io-VF for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 02:48:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSaY6-0004i5-5T for help-gnu-emacs@gnu.org; Wed, 14 Oct 2020 02:46:10 -0400 Original-Received: from mout.web.de ([212.227.17.12]:37697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSaY1-00062q-5L for help-gnu-emacs@gnu.org; Wed, 14 Oct 2020 02:46:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1602657953; bh=vsFhw3LeceuYDXefAsH7ttqH7M5kELJqYdT7IxlCNEg=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=leeXzyOMjrg+9PXq/Knpr96hwEUbs1V89nCBfOfI0T3v5WfH/dIIr045aGH4X7hg8 qT+aGCXNmN/Svf2etrqg48L5eNe8vea2Bjb1XenaSubxdIK10QxWCU+ptLOW6ZczX/ 5OWY+B0q2ZdNa5Egz3dicgz8QYzSEciNLb+QYyLU= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.220.78]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MhDkj-1kouWz1JbN-00MJ1z; Wed, 14 Oct 2020 08:40:28 +0200 In-Reply-To: (Okam's message of "Tue, 13 Oct 2020 01:10:27 +0000") X-Provags-ID: V03:K1:ftYwuWkBYsdTUaldWpTfJ+LSbwf4qmtt4f6FERy+6MXjpvNVar0 I5fyScZ05Aw3f6yJCRrDfPJDr2+Vzcsm+sCrxMgY9ruW6IWrOQzfFpzInUjQegcMrXySWiE ICnTYWCXl6sMbHk9lwUAIj0Ha2OxUEtc0oJidG3xuKuRYgvRLXjp6R9eZOOgbYKZMrh2qdR Om7uEjth9tZVFCDwGeAPA== X-UI-Out-Filterresults: notjunk:1;V03:K0:IjpnM3vWf98=:fBJkFOgEu7PfD9WK5VvkX0 MYseB0Ye6nQkSDlmY4kHyL6UVv04ggCFcLolqtTWE57EuuPmnhwnEjyk2cPZUxwZa7Z7px7Df 1PR78ZMyuMCkSzZjBdaXoWbJlIvkXZh6GRZ835aVXVtRdjA/MTKmgo6E7vGGzpAFsDCeWLR81 d0MV7qZMGmi0g9twWJ6rOWgyhc5PdpmJDBCIXIVNeAeAWV1hMLntAe4iJLguJlbRIdeik3BVG /HDBV6QpsHLHIw0aXEVg8cIouLdfhU9NgkG7Pa3xa8kA5Zvhh0DXRmurwiJ4CC5jr5cLmuUNZ Zuaaj4yJd4JDt3OgZpZWbJ9UKFxDKoMuOoimH5EzOSawXVq/hZ1Oer84cfgiqNlOo0E+hFdDr ipFW9mjEqJbfi+J7nsgCghprnE70JUsyXd6/rL+S+R//1oFGG7WxqFCWJ/fzCsNavBPhaWPYN 3DcbUwBCBeIzzRQgN200gxx+cZ8zFFx8KKAJ0zIVIwHrhBJJAFWh2FBQzt8mJQOXenDXHdGkU S4Zql0dlp8ssRuNxDsBLkuw6xHqa2VJT3RasctvZS2V0o+Tr7UUIAsVUE3g4qCn3DSjtk2CCe JXwjJEAfMqJx3tD85je0ndLkNeUtErcY0RyyJSL0r8rISryERddrooiNNYEPxcwtJzeHFbqFg 2otw2PgBhmczX8JKv3SogmlxtnEQMiRP+5mX5tLgwjzeCdVVguk3vxKQtyQX1ubYMJOeN0H7D ft/QyXm+2rbknJFxo2rF5R68bJ72JaAra1yp5WHHjfmwLphCK/wzHbVe6zd+4gXIYzUa1jPa Received-SPF: pass client-ip=212.227.17.12; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/14 02:45:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124454 Archived-At: Okam 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.