diff options
author | Stefan Kangas <stefan@marxist.se> | 2020-10-27 00:49:28 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2020-10-27 00:50:38 +0100 |
commit | e679e0abcf2a1c5c8c95974a9f759edac9c934b4 (patch) | |
tree | 495bb6167e744dbf6e5f2342ecc2bfc13e00aef3 /lisp/textmodes/rst.el | |
parent | c00758a4bca7464250bdd752cb03498ec587e6aa (diff) | |
download | emacs-e679e0abcf2a1c5c8c95974a9f759edac9c934b4.tar.gz emacs-e679e0abcf2a1c5c8c95974a9f759edac9c934b4.tar.bz2 emacs-e679e0abcf2a1c5c8c95974a9f759edac9c934b4.zip |
Don't use obsolete variable write-contents-hooks
* lisp/mh-e/mh-show.el (mh-display-msg):
* lisp/textmodes/rst.el: Don't use obsolete variable
write-contents-hooks.
Problem reported by Stefan Monnier <monnier@iro.umontreal.ca>.
Diffstat (limited to 'lisp/textmodes/rst.el')
-rw-r--r-- | lisp/textmodes/rst.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el index f2fcd62c871..adda28cb81b 100644 --- a/lisp/textmodes/rst.el +++ b/lisp/textmodes/rst.el @@ -2862,7 +2862,7 @@ file-write hook to always make it up-to-date automatically." ;; FIXME: Updating the toc on saving would be nice. However, this doesn't work ;; correctly: ;; -;; (add-hook 'write-contents-hooks 'rst-toc-update-fun) +;; (add-hook 'write-contents-functions 'rst-toc-update-fun) ;; (defun rst-toc-update-fun () ;; ;; Disable undo for the write file hook. ;; (let ((buffer-undo-list t)) (rst-toc-update) )) |