summaryrefslogtreecommitdiff
path: root/lisp/mh-e/mh-show.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2020-10-27 00:49:28 +0100
committerStefan Kangas <stefan@marxist.se>2020-10-27 00:50:38 +0100
commite679e0abcf2a1c5c8c95974a9f759edac9c934b4 (patch)
tree495bb6167e744dbf6e5f2342ecc2bfc13e00aef3 /lisp/mh-e/mh-show.el
parentc00758a4bca7464250bdd752cb03498ec587e6aa (diff)
downloademacs-e679e0abcf2a1c5c8c95974a9f759edac9c934b4.tar.gz
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/mh-e/mh-show.el')
-rw-r--r--lisp/mh-e/mh-show.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mh-e/mh-show.el b/lisp/mh-e/mh-show.el
index 04551acd143..7536f949e76 100644
--- a/lisp/mh-e/mh-show.el
+++ b/lisp/mh-e/mh-show.el
@@ -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