aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2005-05-26 13:07:46 +0000
committerLute Kamstra2005-05-26 13:07:46 +0000
commit430663bc89121001dbfafa9e7f6aaa503db901be (patch)
tree5ff13e40871c3a7b8123b4e5c803c4933df3713a
parent9b5e13c4f823dd20dac201a1f9a6b691d9a496bd (diff)
downloademacs-430663bc89121001dbfafa9e7f6aaa503db901be.tar.gz
emacs-430663bc89121001dbfafa9e7f6aaa503db901be.zip
(Man-mode): Use kill-all-local-variables and run-mode-hooks.
-rw-r--r--lisp/man.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 712b1f30e7f..aa5bd04dd57 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1061,6 +1061,7 @@ The following variables may be of some use. Try
1061The following key bindings are currently in effect in the buffer: 1061The following key bindings are currently in effect in the buffer:
1062\\{Man-mode-map}" 1062\\{Man-mode-map}"
1063 (interactive) 1063 (interactive)
1064 (kill-all-local-variables)
1064 (setq major-mode 'Man-mode 1065 (setq major-mode 'Man-mode
1065 mode-name "Man" 1066 mode-name "Man"
1066 buffer-auto-save-file-name nil 1067 buffer-auto-save-file-name nil
@@ -1069,7 +1070,7 @@ The following key bindings are currently in effect in the buffer:
1069 " {" 'Man-page-mode-string "}") 1070 " {" 'Man-page-mode-string "}")
1070 truncate-lines t 1071 truncate-lines t
1071 buffer-read-only t) 1072 buffer-read-only t)
1072 (buffer-disable-undo (current-buffer)) 1073 (buffer-disable-undo)
1073 (auto-fill-mode -1) 1074 (auto-fill-mode -1)
1074 (use-local-map Man-mode-map) 1075 (use-local-map Man-mode-map)
1075 (set-syntax-table man-mode-syntax-table) 1076 (set-syntax-table man-mode-syntax-table)
@@ -1080,7 +1081,7 @@ The following key bindings are currently in effect in the buffer:
1080 (Man-strip-page-headers) 1081 (Man-strip-page-headers)
1081 (Man-unindent) 1082 (Man-unindent)
1082 (Man-goto-page 1) 1083 (Man-goto-page 1)
1083 (run-hooks 'Man-mode-hook)) 1084 (run-mode-hooks 'Man-mode-hook))
1084 1085
1085(defsubst Man-build-section-alist () 1086(defsubst Man-build-section-alist ()
1086 "Build the association list of manpage sections." 1087 "Build the association list of manpage sections."