aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1996-01-25 10:21:05 +0000
committerSimon Marshall1996-01-25 10:21:05 +0000
commitc28baa2ad84dd83e01a6a7d26cbfe8d4379242ae (patch)
tree7885f84768860427337663d853d0363d4438d5e2
parent212b2266cb3b4cece02b2723917f577e02f4d0ef (diff)
downloademacs-c28baa2ad84dd83e01a6a7d26cbfe8d4379242ae.tar.gz
emacs-c28baa2ad84dd83e01a6a7d26cbfe8d4379242ae.zip
Use make-local-hook for post-command-hook
-rw-r--r--lisp/mail/rmailsum.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index c0f286a7ce2..919c0ded584 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -648,7 +648,7 @@ Commands for sorting the summary:
648 (make-local-variable 'rmail-summary-redo) 648 (make-local-variable 'rmail-summary-redo)
649 (setq rmail-summary-redo nil) 649 (setq rmail-summary-redo nil)
650 (make-local-variable 'revert-buffer-function) 650 (make-local-variable 'revert-buffer-function)
651 (make-local-variable 'post-command-hook) 651 (make-local-hook 'post-command-hook)
652 (make-local-variable 'font-lock-defaults) 652 (make-local-variable 'font-lock-defaults)
653 (setq font-lock-defaults '(rmail-summary-font-lock-keywords t)) 653 (setq font-lock-defaults '(rmail-summary-font-lock-keywords t))
654 (rmail-summary-enable) 654 (rmail-summary-enable)
@@ -657,12 +657,12 @@ Commands for sorting the summary:
657;; Summary features need to be disabled during edit mode. 657;; Summary features need to be disabled during edit mode.
658(defun rmail-summary-disable () 658(defun rmail-summary-disable ()
659 (use-local-map text-mode-map) 659 (use-local-map text-mode-map)
660 (remove-hook 'post-command-hook 'rmail-summary-rmail-update) 660 (remove-hook 'post-command-hook 'rmail-summary-rmail-update t)
661 (setq revert-buffer-function nil)) 661 (setq revert-buffer-function nil))
662 662
663(defun rmail-summary-enable () 663(defun rmail-summary-enable ()
664 (use-local-map rmail-summary-mode-map) 664 (use-local-map rmail-summary-mode-map)
665 (add-hook 'post-command-hook 'rmail-summary-rmail-update) 665 (add-hook 'post-command-hook 'rmail-summary-rmail-update nil t)
666 (setq revert-buffer-function 'rmail-update-summary)) 666 (setq revert-buffer-function 'rmail-update-summary))
667 667
668;; Show in Rmail the message described by the summary line that point is on, 668;; Show in Rmail the message described by the summary line that point is on,