From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#25460: 26.0.50; Documentation request: Save/write hooks and autosave Date: Mon, 16 Jan 2017 19:09:58 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1484590692 27309 195.159.176.226 (16 Jan 2017 18:18:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2017 18:18:12 +0000 (UTC) To: 25460@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 16 19:18:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTBqu-0005v3-3u for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2017 19:17:56 +0100 Original-Received: from localhost ([::1]:58784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTBqy-0003My-N1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2017 13:18:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTBkF-0006Z7-RI for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:11:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTBkE-0004Sf-Ee for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:11:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40499) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTBkE-0004Sb-Ap for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cTBkE-0001Xk-2x for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2017 13:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2017 18:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14845902185877 (code B ref -1); Mon, 16 Jan 2017 18:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jan 2017 18:10:18 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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: 208.118.235.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:128150 Archived-At: 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.