GNU bug report logs -
#48348
27.2; buffer-stale-function is being reset by make-indirect-buffer
Previous Next
Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>
Date: Tue, 11 May 2021 12:54:02 UTC
Severity: normal
Found in version 27.2
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48348 in the body.
You can then email your comments to 48348 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#48348
; Package
emacs
.
(Tue, 11 May 2021 12:54:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Al Haji-Ali <abdo.haji.ali <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 11 May 2021 12:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#48348
; Package
emacs
.
(Mon, 11 Jul 2022 14:06:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 48348 <at> debbugs.gnu.org (full text, mbox):
Al Haji-Ali <abdo.haji.ali <at> gmail.com> 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
bug marked as fixed in version 29.1, send any further explanations to
48348 <at> debbugs.gnu.org and Al Haji-Ali <abdo.haji.ali <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Jul 2022 14:09:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2022 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 260 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.