"Stephen J. Turnbull" <turnbull(a)sk.tsukuba.ac.jp> writes:
Ben,
Apparently you added a defvar for auto-save-hook in r1333 (xemacs
trunk), but left it commented out. Was there a reason for not
implementing it, or you just didn't get around to it? It's
documented in the Lispref.
[Aside to Mike K: if Ben doesn't reply fairly soon, let's check Emacs.
If it's there, we may as well implement it.]
auto-save-hook is a variable defined in `files.el'.
Its value is nil
This variable is potentially risky when used as a file local variable.
Documentation:
Normal hook run just before auto-saving.
[back]
git grep auto-save-hook
doc/lispref/backups.texi:@defvar auto-save-hook
doc/lispref/hooks.texi:@item auto-save-hook
lisp/ChangeLog: (allout-auto-save-hook-handler): Remove. auto-save does not che
lisp/ChangeLog.11: `auto-save-hook'. Reported by Thomas Prokosch <thomas@n
lisp/ChangeLog.12: `local-write-file-hooks' and, instead of making auto-sav
lisp/ChangeLog.12: (allout-write-file-hook-handler, allout-auto-save-hook-h
lisp/ChangeLog.13: (rcirc-connect): Write logs to disk on auto-save-hook.
lisp/ChangeLog.6: auto-save-hook for periodically parsing keys.
lisp/ChangeLog.8: * files.el (auto-save-hook): Defvar this.
lisp/cedet/semantic/db-mode.el: (semanticdb-save-all-db-idle auto-save-hook)
lisp/files.el:(defvar auto-save-hook nil
lisp/net/rcirc.el: (add-hook 'auto-save-hook 'rcirc-log-write)
lisp/net/tramp.el: (add-hook 'auto-save-hook 'tramp-set-auto-save-file-modes)
lisp/net/tramp.el: (remove-hook 'auto-save-hook 'tramp-set-auto-save-
src/ChangeLog.3: * fileio.c (Fdo_auto_save): Run auto-save-hook.
src/fileio.c:Normally we run the normal hook `auto-save-hook' before saving.
src/fileio.c: hook = intern ("auto-save-hook");
src/fileio.c (do-auto-save):
hook = intern ("auto-save-hook");
Frun_hooks (1, &hook);
--
David Kastrup
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta