From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 08:53:27 2021 Received: (at submit) by debbugs.gnu.org; 11 May 2021 12:53:27 +0000 Received: from localhost ([127.0.0.1]:35301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgRt4-0001Ki-Ph for submit@debbugs.gnu.org; Tue, 11 May 2021 08:53:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:43726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgRt3-0001Kb-Ok for submit@debbugs.gnu.org; Tue, 11 May 2021 08:53:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgRt2-0000DC-Oc for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:53:21 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:55949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgRsz-000402-B8 for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:53:20 -0400 Received: by mail-wm1-x32e.google.com with SMTP id i128so11041871wma.5 for ; Tue, 11 May 2021 05:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=E7dL7G4IemUxglbSpTCWGn31s+CgZ1uquRPMyA+tlJc=; b=dwzpI+B7jhKFRHW4OJ7ywcgx+TF70ABJomrHa6WQ8eauLPBG/0zCec0utNwMkDqrTI luA/YsjzlZfaDiQt0G0YjWcUmzsAb6YTG7XN3XOoI01pegESl/a2qV65ocGw+sPGHlLi 5nGdsr/08NqmyfKKLbpDn382zF2vzJaGxvKodYPKlaxGWKIdxtWR5xMHy6B/HxwK840z 1PJtLTHYLlaENaySFXONUnEPLkcNNLoMAHWIOpN2rZOomGlJwKOL3PsqQ5PPL43XCJAQ qjNf1d3xwOT2+JxGKm5xm10/j2Xpgy/N4C+biE6J0orJ5lt5gHxVhnMWX2CSzQptSsid uH6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=E7dL7G4IemUxglbSpTCWGn31s+CgZ1uquRPMyA+tlJc=; b=JcxJjTDxxQBW9X/YK/xr4SUUjSGKpiBB3zNs0wS19XkxqYvDsyl8rEawsIgzDLUvCB yRafBXjEPHPrMVNMnq/JcWMkXNEGC2veHddmsMJQJEDrtuqHd1moQZIUX0b22Lg71ygj gmFCl15aM1L5rGbE/wb53U2OcB8v6pbFJ52bCvjg/AfbToacrNcJDN4uN36ps4bvtD2y kAm0DDnHR6BUIJbWL7bkpKk1fXzlsCw932KWWh2tOFfykcKnlQgp8EQH0ZXOvougIQXL ePiwyxHHz3JyDet8Z7uxPFFl47dF5PXJcmlcp3aUJsEujIY3pH94J+2jC2hLlqseCjya a50g== X-Gm-Message-State: AOAM5336WF0et5yFtu9PN+FACVWsXKEgRvP47bWMwkEFZGKbZCMnhVrk tmrFljs+llFGQs2kQ0s/Z95AwbRhdCY= X-Google-Smtp-Source: ABdhPJxSAR290ICZy9OnMQCKdreFm0p9r12GWKS25wkqEq3GyZhLRxmSe+Y5fMnIPl+aebndVdayUg== X-Received: by 2002:a05:600c:230f:: with SMTP id 15mr31006419wmo.19.1620737594142; Tue, 11 May 2021 05:53:14 -0700 (PDT) Received: from thinkpad.gmail.com (cpc152997-sgyl45-2-0-cust468.18-2.cable.virginm.net. [82.32.155.213]) by smtp.gmail.com with ESMTPSA id n6sm28004594wro.23.2021.05.11.05.53.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 05:53:13 -0700 (PDT) User-agent: mu4e 1.5.13; emacs 27.2 From: Al Haji-Ali To: bug-gnu-emacs@gnu.org Subject: 27.2; buffer-stale-function is being reset by make-indirect-buffer Date: Tue, 11 May 2021 13:43:36 +0100 Message-ID: <87lf8la19q.fsf@hw.ac.uk> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=abdo.haji.ali@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, I am setting `buffer-stale-function` to prevent some buffers from being reverted when `global-auto-revert-mode` is enabled (I am not aware of a different way than setting `buffer-stale-function` to achieve this). This works well, but I noticed that `make-indirect-buffer` (which for example org-capture uses) seems to reset `buffer-stale-function` to nil (in buffer.c:906). Is this intended? I find it strange since `buffer-stale-function` is not buffer-local. Also the fact that it is reset to `nil` instead of the default `buffer-stale--default-function` is doubly strange. Al -- In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-04-06 built on thinkpad Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.04.2 LTS Configured using: 'configure --prefix=/home/abdo/.local/ --with-json --with-modules --with-harfbuzz --with-compress-install --with-threads --with-included-regex --with-zlib --with-sound=alsa --without-gconf --with-mailutils --with-xft --with-xml2 --with-cairo --with-gconf --with-xwidgets --without-toolkit-scroll-bars 'CFLAGS=-O3 -mtune=native -march=native -fomit-frame-pointer -I/usr/lib/gcc/x86_64-linux-gnu/9/include/ -L/usr/lib/gcc/x86_64-linux-gnu/9'' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GCONF GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix ________________________________ Heriot-Watt University was founded in 1821 and is a registered Scottish charity (SC000278). From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 10:05:42 2022 Received: (at 48348) by debbugs.gnu.org; 11 Jul 2022 14:05:43 +0000 Received: from localhost ([127.0.0.1]:40520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAu2g-0007dU-M5 for submit@debbugs.gnu.org; Mon, 11 Jul 2022 10:05:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAu2b-0007d9-Ow for 48348@debbugs.gnu.org; Mon, 11 Jul 2022 10:05:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oWhEYvwLHnEloc3IswHYGz501ZvjbdoF7bB5nS2VSvE=; b=GvpdFRWrm0pV0hTA2mevXOJjxo mTS9Rh3CViKCeYRYpMXSBkx+GlETTTqbnfnpVa1+DhTHQN8b6uLsk7Og0CfhqqlXIwVN139tsa3zT HzOtPiiJ8Avh3Des7zDKJkvCLBi0oU0nhXAN8hNzmbeyHtErCGlNvZXaVd4bN+X0Lyu0=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAu2S-0003ly-AW; Mon, 11 Jul 2022 16:05:31 +0200 From: Lars Ingebrigtsen To: Al Haji-Ali Subject: Re: bug#48348: 27.2; buffer-stale-function is being reset by make-indirect-buffer In-Reply-To: <87lf8la19q.fsf@hw.ac.uk> (Al Haji-Ali's message of "Tue, 11 May 2021 13:43:36 +0100") References: <87lf8la19q.fsf@hw.ac.uk> X-Now-Playing: Stilluppsteypa's _Mort Aux Vaches_: "On The Right There" Date: Mon, 11 Jul 2022 16:05:24 +0200 Message-ID: <87pmibu4m3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Al Haji-Ali writes: > Is this intended? I find it strange since `buffer-stale-function` is > not buffer-local. > Also the fact that it is reset to `nil` instead of the default > `buffer-stale--default-function` is doubly [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48348 Cc: 48348@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Al Haji-Ali writes: > Is this intended? I find it strange since `buffer-stale-function` is > not buffer-local. > Also the fact that it is reset to `nil` instead of the default > `buffer-stale--default-function` is doubly strange. Yup. I've now fixed this in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 10:08:24 2022 Received: (at control) by debbugs.gnu.org; 11 Jul 2022 14:08:24 +0000 Received: from localhost ([127.0.0.1]:40530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAu5I-0007iT-Ah for submit@debbugs.gnu.org; Mon, 11 Jul 2022 10:08:24 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAu5G-0007i9-Vz for control@debbugs.gnu.org; Mon, 11 Jul 2022 10:08:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4VKEWDtfI6ckkSaesLeAp7G8oSgWs17a58JkGekedIU=; b=bQQ0vQAW9HCiKPfghhuf0y5EPi C1QEUNVne/AX3Q2MkonD3BW3e4oAOfxWIgfgqrgLTPS7fFT7RiL4wm+2e3pANI/TGvBJt6wjbBf+B 3e95eh9UBvt1IO2aNO0y/zjIrI3evg1xr0/cM4BjDM9dgaB5A7c7BQ5lW3U8VjW094ik=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAu58-0003mS-RI for control@debbugs.gnu.org; Mon, 11 Jul 2022 16:08:16 +0200 Date: Mon, 11 Jul 2022 16:08:14 +0200 Message-Id: <87o7xvu4hd.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #48348 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 48348 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 48348 29.1 quit From unknown Fri Jun 20 07:24:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Aug 2022 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator