From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#34765: 26.1; with-temp-buffer should not run buffer-list-update-hook Date: Mon, 30 Nov 2020 20:34:55 +0000 Message-ID: <87360qoa6o.fsf@tcd.ie> References: <5C7FD591.9090505@gmx.at> <83lg1sc8ob.fsf@gnu.org> <5C8009F3.5000405@gmx.at> <767e1b59-6ac2-cd11-076e-82a56ac53e29@gmx.at> <11be4631-b087-52a3-92fe-4cbd5248908d@gmx.at> <838svxxk41.fsf@gnu.org> <49c11920-0909-dcc2-4a39-4cdcfaf20453@gmx.at> <87h7sp1xay.fsf@gnus.org> <83r1rgpusx.fsf@gnu.org> <87pn5u7m0y.fsf@gnus.org> <5bdc73dd-af73-1b9a-9bb4-e154787e1976@gmx.at> <87a6uzan9s.fsf@tcd.ie> <71b78484-b0a7-3e0e-a999-afa07f8b4832@gmx.at> <87lfeioh0v.fsf@tcd.ie> <83tut6iqbp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10351"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 34765@debbugs.gnu.org, larsi@gnus.org, monnier@IRO.UMontreal.CA, alexanderm@web.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 30 21:36:10 2020 Return-path: Envelope-to: geb-bug-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 1kjpu6-0002b1-73 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 21:36:10 +0100 Original-Received: from localhost ([::1]:39670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjpu5-0000zF-8A for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 15:36:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjpty-0000yC-0q for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 15:36:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjptx-0002Y6-PM for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 15:36:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjptx-0002Eu-Mn for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 15:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Nov 2020 20:36: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.16067685048540 (code B ref 34765); Mon, 30 Nov 2020 20:36:01 +0000 Original-Received: (at 34765) by debbugs.gnu.org; 30 Nov 2020 20:35:04 +0000 Original-Received: from localhost ([127.0.0.1]:56820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjpt2-0002Df-Gr for submit@debbugs.gnu.org; Mon, 30 Nov 2020 15:35:04 -0500 Original-Received: from mail-wm1-f49.google.com ([209.85.128.49]:37121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjpt0-0002D7-Qy for 34765@debbugs.gnu.org; Mon, 30 Nov 2020 15:35:03 -0500 Original-Received: by mail-wm1-f49.google.com with SMTP id h21so1067267wmb.2 for <34765@debbugs.gnu.org>; Mon, 30 Nov 2020 12:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=mzUNwvzk7rX1a+3mO1m4ACyrBSYnx7/2D5djIzZBpyE=; b=z7/TBK5/UEUM6L+uIiwSZgJCLskTbiHaREvxI71aRZS81Mjk1YEup4aCxW2BwHetfB JsnSwge2Xnf+DxGt5TC4czOOj6/YAre/5WbMeKjYoNwMD8mKuTDyvyPZy0QpdN179Vzw +dH4Ul/Le/CledfqgAvKRdQGNLj3o/4KvdTIZrnvtB3Wu5KDl5/z2Jnclk5YIAuX3gqU IHd8rSChErDzLe8bO9ABcoX0B/Wylgq4FpCq9QbGVNjJsn1yQS0aoK4WEtiao7B+dLrV K2Gd+sxz3gDNl8/8nxfzTxFa6r5SlLyZOiMxcoLvWrMbBVqMiol6EXbZRVSqwcDlLZUG vkJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=mzUNwvzk7rX1a+3mO1m4ACyrBSYnx7/2D5djIzZBpyE=; b=VQ+NhsX2v94ARkagq0IHUaDRVUHFGaDNAGRACvNYZaYH89Q+M2fUqZ0lFz2cm74vNL 8kIncnwRAcWUVjN90vniHSdDq5FwDBGyhkIdHwbKzdXdfw/fXNV8pu7TqKO6z7skFNb3 n+7Mh6M+K2iSrdAVPMmrQeXVfbI7w0NE9T30s/JLZ80N6O+KWs8zVHA2Efu8YeKYqRZK iIAZ5XX4450ZCK7wbf7jBLzpVAc4Ly/tDvp6wx6SKjQrgFbS77bFnwtW/jMNgtI15KED nxV0HJbI6wQbTMA37jhs5zKc1oadZcttEWrvTrLwvIaZYUnYj1hUuwzLUE3YbBRkfRjU BsGg== X-Gm-Message-State: AOAM532Q2akVJijyorF7O53kMULjFTbb0z6VuNmkhwypZJWaGuU6+rHl NCic37yUmlrzDm2vzVWq8SFSFg== X-Google-Smtp-Source: ABdhPJw6dZwXCfx7GDeELFo+CoiqHmcLibYtujWo5B3YECXFXX0uluDHUK4TrjeVWIPV2ZYplwW/XA== X-Received: by 2002:a1c:1bcd:: with SMTP id b196mr540340wmb.70.1606768497099; Mon, 30 Nov 2020 12:34:57 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id v20sm528217wml.34.2020.11.30.12.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 12:34:56 -0800 (PST) In-Reply-To: <83tut6iqbp.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Nov 2020 21:42:50 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194683 Archived-At: Eli Zaretskii writes: >> From: "Basil L. Contovounesios" >> Cc: Lars Ingebrigtsen , Eli Zaretskii , >> 34765@debbugs.gnu.org, alexanderm@web.de, monnier@IRO.UMontreal.CA >> Date: Mon, 30 Nov 2020 18:07:12 +0000 >> >> If I create a temporary buffer with the proposed >> >> (generate-new-buffer "foo" t) >> >> then how do I later tell Emacs that this buffer's hooks should run? > > The assumption is that you don't want to. Recall that the original > idea was to turn the hooks off unconditionally based on the buffer's > name. The above is a less drastic measure: it allows the code which > creates the buffer to request that regardless of the name. But the > original motivation, that there are buffers where we want to never run > the hooks, is still valid. > >> In other words, can we be sure that the buffers we choose to create with >> inhibit_buffer_hooks set will *never* need to later unset it? > > We didn't see examples of such buffers, so we pretend they don't > exist. > >> Should we expose a getter or setter for this buffer member > > Not until someone comes up crying that this is needed, and presents a > convincing use case, IMO. WFM. I'll finish up Martin's patch with some docs then. Thanks, -- Basil