mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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>.
This commit is contained in:
parent
c00758a4bc
commit
e679e0abcf
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue