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 13:49:19 +0300 Message-ID: <83k1fiz7f4.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> <83v9z2zcwe.fsf@gnu.org> <8cc9317a-848f-53cb-4664-1c6e63fe7e11@gmx.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="248344"; 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 12:51:30 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 1hJbyU-0012SE-3f for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2019 12:51:30 +0200 Original-Received: from localhost ([127.0.0.1]:55150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJbyS-0003J2-LP for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2019 06:51:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJbyI-0003GZ-KV for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 06:51:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJbx3-0000y3-Uh for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 06:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJbx3-0000xs-Re for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 06:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hJbx3-0005dJ-M1 for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 06:50:01 -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 10:50:01 +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.155618938921631 (code B ref 34765); Thu, 25 Apr 2019 10:50:01 +0000 Original-Received: (at 34765) by debbugs.gnu.org; 25 Apr 2019 10:49:49 +0000 Original-Received: from localhost ([127.0.0.1]:57594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJbwq-0005cn-MM for submit@debbugs.gnu.org; Thu, 25 Apr 2019 06:49:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJbwn-0005ca-SI for 34765@debbugs.gnu.org; Thu, 25 Apr 2019 06:49:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJbwi-0000EA-5E; Thu, 25 Apr 2019 06:49:40 -0400 Original-Received: from [176.228.60.248] (port=2740 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hJbwh-0005FH-K4; Thu, 25 Apr 2019 06:49:39 -0400 In-reply-to: <8cc9317a-848f-53cb-4664-1c6e63fe7e11@gmx.at> (message from martin rudalics on Thu, 25 Apr 2019 12:31:20 +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:158243 Archived-At: > Cc: 34765@debbugs.gnu.org, alexanderm@web.de, monnier@IRO.UMontreal.CA > From: martin rudalics > Date: Thu, 25 Apr 2019 12:31:20 +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. > > IIUC we'd need an expression similar to Vcode_conversion_workbuf_name > to use in 'get-buffer-create' That's what I meant, yes. > >> 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? > > Unless the body changes the buffer list in some signifcant way, for > example, by creating or deleting another buffer. Sure, but that's why this should not be done unconditionally. > Then what about the buffers created by 'with-temp-file' or > 'with-output-to-string'? Fine with me. But the former already uses with-temp-buffer, so I don't think we need anything special for it.