From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34765: 26.1; with-temp-buffer should not run buffer-list-update-hook Date: Thu, 25 Apr 2019 11:50:57 +0300 Message-ID: <83v9z2zcwe.fsf@gnu.org> References: <5C7FD591.9090505@gmx.at> <83lg1sc8ob.fsf@gnu.org> <5C8009F3.5000405@gmx.at> <767e1b59-6ac2-cd11-076e-82a56ac53e29@gmx.at> <831s1t57q9.fsf@gnu.org> <91d6aceb-5615-5706-99b8-d7f649c5ad87@gmx.at> <83k1fj3bd0.fsf@gnu.org> <520f7a25-03ba-bab0-0826-1c03af207394@gmx.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="269910"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34765@debbugs.gnu.org, alexanderm@web.de, monnier@IRO.UMontreal.CA To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 25 11:03:35 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJaI2-00182m-LP for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2019 11:03:34 +0200 Original-Received: from localhost ([127.0.0.1]:54117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJaI1-0008R3-Ef for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2019 05:03:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJaHS-00084M-Me for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 05:02:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJa6s-0000Cc-Q9 for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 04:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJa6s-0000CU-MQ for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 04:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hJa6s-0002ki-Fq for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 04:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Apr 2019 08:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34765 X-GNU-PR-Package: emacs Original-Received: via spool by 34765-submit@debbugs.gnu.org id=B34765.155618228510536 (code B ref 34765); Thu, 25 Apr 2019 08:52:02 +0000 Original-Received: (at 34765) by debbugs.gnu.org; 25 Apr 2019 08:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:57407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJa6H-0002js-53 for submit@debbugs.gnu.org; Thu, 25 Apr 2019 04:51:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJa6G-0002jh-8b for 34765@debbugs.gnu.org; Thu, 25 Apr 2019 04:51:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJa6A-0008A1-4F; Thu, 25 Apr 2019 04:51:18 -0400 Original-Received: from [176.228.60.248] (port=3119 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hJa69-0005Sk-EP; Thu, 25 Apr 2019 04:51:17 -0400 In-reply-to: <520f7a25-03ba-bab0-0826-1c03af207394@gmx.at> (message from martin rudalics on Thu, 25 Apr 2019 10:06:18 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158234 Archived-At: > Cc: 34765@debbugs.gnu.org, alexanderm@web.de, monnier@IRO.UMontreal.CA > From: martin rudalics > Date: Thu, 25 Apr 2019 10:06:18 +0200 > > > I meant to suggest that get-buffer-create sets this flag when the name > > of the buffer fits the template of temporary buffers. Exactly like it > > does for code-conversion buffers now. > > We don't have a "template of temporary buffers". Of course we do: with-temp-buffer produces buffer names that follow such a template. > For example, a buffer specified by the BUFNAME arg of > 'with-output-to-temp-buffer' should not match such a template. Such buffers should not necessarily be exempt from running the hooks, AFAIU. In any case, one can always bind the hook locally to nil in the body of the macro, right? > But I'd favor a solution that skips all buffers whose name starts > with a space as we do for 'other-buffer' or 'unbury-buffer'. I think this is too drastic a measure. We should only disable the hooks in buffers where no one in their right minds will ever want to run them.