]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't use obsolete variable write-contents-hooks
authorStefan Kangas <stefan@marxist.se>
Mon, 26 Oct 2020 23:49:28 +0000 (00:49 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 26 Oct 2020 23:50:38 +0000 (00:50 +0100)
* 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>.

lisp/mh-e/mh-show.el
lisp/textmodes/rst.el

index 04551acd143e1a931e7bcf3c5b3e7f49ed2a48ce..7536f949e760fbe3a89f817f8ddf8092990d7061 100644 (file)
@@ -219,7 +219,7 @@ Sets the current buffer to the show buffer."
              (erase-buffer)
              ;; Changing contents, so this hook needs to be reinitialized.
              ;; pgp.el uses this.
-             (kill-local-variable 'write-contents-hooks)
+             (kill-local-variable 'write-contents-functions)
              (font-lock-mode -1)
              (mh-show-mode)
              (if formfile
index f2fcd62c8712c5a3ec7a285a81b07e50610f565b..adda28cb81bf49faa1b53e42bd5e0bf325522d25 100644 (file)
@@ -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) ))