From unknown Fri Aug 15 20:47:57 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#25460 <25460@debbugs.gnu.org>
To: bug#25460 <25460@debbugs.gnu.org>
Subject: Status: 26.0.50; Documentation request: Save/write hooks and autosave
Reply-To: bug#25460 <25460@debbugs.gnu.org>
Date: Sat, 16 Aug 2025 03:47:57 +0000
retitle 25460 26.0.50; Documentation request: Save/write hooks and autosave
reassign 25460 emacs
submitter 25460 Philipp Stephani
severity 25460 wishlist
thanks
From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 16 13:10:18 2017
Received: (at submit) by debbugs.gnu.org; 16 Jan 2017 18:10:18 +0000
Received: from localhost ([127.0.0.1]:55898 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1cTBjV-0001Wj-Va
for submit@debbugs.gnu.org; Mon, 16 Jan 2017 13:10:18 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52038)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1cTBjU-0001WU-MO
for submit@debbugs.gnu.org; Mon, 16 Jan 2017 13:10:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1cTBjN-0004Kf-VO
for submit@debbugs.gnu.org; Mon, 16 Jan 2017 13:10:11 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58745)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1cTBjN-0004KN-RY
for submit@debbugs.gnu.org; Mon, 16 Jan 2017 13:10:09 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43002)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1cTBjL-0005jm-Py
for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:10:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1cTBjK-0004H7-E4
for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:10:07 -0500
Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:38163)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1cTBjK-0004Ga-43
for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:10:06 -0500
Received: by mail-wm0-x22d.google.com with SMTP id r144so186701115wme.1
for ; Mon, 16 Jan 2017 10:10:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=m7xlIvX4WtohpP7ltboD8Nirk1ZYJsdchCmLJbdOZ5U=;
b=BpcQuchTfjpFJcetPArfcE+eT/4ae0dHEXPzdrmN0uegha0qAA+49YrN4ol1dcMr8x
PSrpF0lfs89DZJVuUeA72Un5lotgWQNW+vOx9LJ4q1XrN/3WJKIcYmkWnHesmxrcNBM/
LXWskH+KYI/k+ASXkiwj2aHVHfoytPnimCcziL1NF/xLRss0Gy07GPYLqeLW455PB/GU
S+P3KnykcasfCvogqpOQdKg9+PTOa1RlnkLNmeKVZzqQoUZNYn+hEy7i0PSnpCgNbNHy
zmmYmgP6sL92jfNHrSFn6snNy5DYsKKdt79sENEVyw9rdzwdelTDGLG1NnuRGn8nwpFD
BQJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=m7xlIvX4WtohpP7ltboD8Nirk1ZYJsdchCmLJbdOZ5U=;
b=oYKesvf6FVpNJjxPqTUXZSjdiQAw3zCLcH7zqQV1pKtSEjeGwesWRXPlq/2jnYMYAe
2mnxF2JAA6fWYo875Kd9uwx0u4fRi1jMpwEu6nVmdrOYfmuMxVAjMyAQS59nekQr/8dr
M/7nsWurvCG4jyQcEPPx1UJ2Qq8NeKtAkUVHASKOVTKFxTTYwnhpIKCZiuXJ2Pbgr4Uj
OGbiG1RLZq1FnyDziyhuDdip0xLi9trmn92etL+wUlonGygipLxQrq2/l4xcBTgdMniJ
ZZL4qmvUIp9liDV0T69BlCCMDO2NdNRCv9BElc1uNDU6Zxy77Nef+c9JS8tp2PXYAr+g
Dpyg==
X-Gm-Message-State: AIkVDXI6k9MNDksdY3NE9VlxysU6WoRh7Yss/aN31c5XYXdvwOuMx5zb5h2l0uMY/2YA4w==
X-Received: by 10.28.206.199 with SMTP id e190mr13710308wmg.98.1484590204471;
Mon, 16 Jan 2017 10:10:04 -0800 (PST)
Received: from a.muc.corp.google.com ([2a00:79e0:15:4:48fc:dd77:c47:6b0e])
by smtp.gmail.com with ESMTPSA id u78sm30440167wma.11.2017.01.16.10.10.03
for
(version=TLS1_2 cipher=AES128-SHA bits=128/128);
Mon, 16 Jan 2017 10:10:03 -0800 (PST)
From: Philipp Stephani
To: bug-gnu-emacs@gnu.org
Subject: 26.0.50; Documentation request: Save/write hooks and autosave
Date: Mon, 16 Jan 2017 19:09:58 +0100
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
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.8 (---)
Please document how {before,after}-save-hook and
write-{buffer,file}-functions relate to autosave, both in the docstrings
of these hooks and in the Emacs Lisp manual. I noticed that even if
auto-save-visited-file-name is t, autosaving doesn't run
before-save-hook. The documentation should provide some guidance which
hook to use depending on the value of auto-save-visited-file-name and on
whether the current save operation is an auto-save or not.
In GNU Emacs 26.0.50.28 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2017-01-13 built on localhost
Repository revision: d018843e0e8065b1c9de9474521db069e1aa0025
Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04 LTS
Recent messages:
Configured using:
'configure --with-modules --enable-checking
--enable-check-lisp-object-type 'CFLAGS=3D-ggdb3 -O0''
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/image/gravatar hides /usr=
/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/gravatar
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/mail-parse hides /us=
r/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/mail-parse
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/rfc2231 hides /usr/l=
ocal/google/home/phst/ThirdParty/Emacs/lisp/gnus/rfc2231
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/net/starttls hides /usr/l=
ocal/google/home/phst/ThirdParty/Emacs/lisp/gnus/starttls
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/net/sieve hides /usr/loca=
l/google/home/phst/ThirdParty/Emacs/lisp/gnus/sieve
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/international/utf7 hides =
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/utf7
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/registry hides /usr/local=
/google/home/phst/ThirdParty/Emacs/lisp/gnus/registry
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/international/rfc1843 hid=
es /usr/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/rfc1843
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/rfc2045 hides /usr/l=
ocal/google/home/phst/ThirdParty/Emacs/lisp/gnus/rfc2045
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/yenc hides /usr/loca=
l/google/home/phst/ThirdParty/Emacs/lisp/gnus/yenc
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/net/sieve-manage hides /u=
sr/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/sieve-manage
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/net/mailcap hides /usr/lo=
cal/google/home/phst/ThirdParty/Emacs/lisp/gnus/mailcap
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/auth-source hides /usr/lo=
cal/google/home/phst/ThirdParty/Emacs/lisp/gnus/auth-source
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/rtree hides /usr/local/go=
ogle/home/phst/ThirdParty/Emacs/lisp/gnus/rtree
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/net/html2text hides /usr/=
local/google/home/phst/ThirdParty/Emacs/lisp/gnus/html2text
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/ecomplete hides /usr/loca=
l/google/home/phst/ThirdParty/Emacs/lisp/gnus/ecomplete
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/image/compface hides /usr=
/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/compface
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/mail-prsvr hides /us=
r/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/mail-prsvr
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/qp hides /usr/local/=
google/home/phst/ThirdParty/Emacs/lisp/gnus/qp
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/ietf-drums hides /us=
r/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/ietf-drums
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/rfc2047 hides /usr/l=
ocal/google/home/phst/ThirdParty/Emacs/lisp/gnus/rfc2047
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/net/sieve-mode hides /usr=
/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/sieve-mode
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/plstore hides /usr/local/=
google/home/phst/ThirdParty/Emacs/lisp/gnus/plstore
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/net/pop3 hides /usr/local=
/google/home/phst/ThirdParty/Emacs/lisp/gnus/pop3
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/mail/flow-fill hides /usr=
/local/google/home/phst/ThirdParty/Emacs/lisp/gnus/flow-fill
/usr/local/google/home/phst/ThirdParty/Emacs/lisp/gs hides /usr/local/googl=
e/home/phst/ThirdParty/Emacs/lisp/obsolete/gs
Features:
(shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv
bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib
dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec
password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript case-table epa-hook jka-cmpr-hook help
simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 97629 7213)
(symbols 48 20220 1)
(miscs 40 331 181)
(strings 32 17991 4050)
(string-bytes 1 592077)
(vectors 16 14071)
(vector-slots 8 471819 3575)
(floats 8 181 12)
(intervals 56 207 0)
(buffers 976 12)
(heap 1024 22205 1120))
--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Gesch=C3=A4ftsf=C3=BChrer: Matthew Scott Sucherman, Paul Terence Manicle
Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und l=C3=
=B6schen
Sie die E-Mail und alle Anh=C3=A4nge. Vielen Dank.
This e-mail is confidential. If you are not the right addressee please do =
not
forward it, please inform the sender, and please erase this e-mail including
any attachments. Thanks.
From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 20 04:03:37 2017
Received: (at 25460-done) by debbugs.gnu.org; 20 Jan 2017 09:03:37 +0000
Received: from localhost ([127.0.0.1]:36032 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1cUV6f-0005OQ-2M
for submit@debbugs.gnu.org; Fri, 20 Jan 2017 04:03:37 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40520)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1cUV6d-0005OD-8p
for 25460-done@debbugs.gnu.org; Fri, 20 Jan 2017 04:03:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1cUV6V-0006EL-72
for 25460-done@debbugs.gnu.org; Fri, 20 Jan 2017 04:03:30 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54986)
by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from )
id 1cUV6V-0006EH-4Z; Fri, 20 Jan 2017 04:03:27 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4137
helo=home-c4e4a596f7)
by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
(Exim 4.82) (envelope-from )
id 1cUV6U-0003An-Gm; Fri, 20 Jan 2017 04:03:26 -0500
Date: Fri, 20 Jan 2017 11:03:18 +0200
Message-Id: <8360la6r3d.fsf@gnu.org>
From: Eli Zaretskii
To: Philipp Stephani
In-reply-to: (message from Philipp
Stephani on Mon, 16 Jan 2017 19:09:58 +0100)
Subject: Re: bug#25460: 26.0.50;
Documentation request: Save/write hooks and autosave
References:
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -8.2 (--------)
X-Debbugs-Envelope-To: 25460-done
Cc: 25460-done@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: ,
Reply-To: Eli Zaretskii
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -8.2 (--------)
> From: Philipp Stephani
> Date: Mon, 16 Jan 2017 19:09:58 +0100
>
> Please document how {before,after}-save-hook and
> write-{buffer,file}-functions relate to autosave
They don't. These hooks are only run by basic-save-buffer.
> I noticed that even if auto-save-visited-file-name is t, autosaving
> doesn't run before-save-hook.
I added notes (on the release branch) that these hooks are only run by
save-buffer.
> The documentation should provide some guidance which hook to use
> depending on the value of auto-save-visited-file-name and on whether
> the current save operation is an auto-save or not.
It looks like you consider auto-save-visited-file-name as an option
that makes auto-saving exactly equivalent to saving the buffer. But
that is far from reality; in fact, as I wrote elsewhere, this option
has subtle issues, so much so that I don't recommend its use at all.
If we want it to be equivalent to saving, we should reimplement it so
that auto-saving uses basic-save-buffer when this option is non-nil.
But that is probably something for a separate bug report, so I'm
closing this one.
From unknown Fri Aug 15 20:47:57 2025
Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control@debbugs.gnu.org
From: Debbugs Internal Request
Subject: Internal Control
Message-Id: bug archived.
Date: Fri, 17 Feb 2017 12:24:03 +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