aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-11-20 23:36:37 +0000
committerRichard M. Stallman2001-11-20 23:36:37 +0000
commit1700f41d2005d62589a473df0bf44d4d81c7ec6e (patch)
tree69737fa80fd2d50b12523ef800ebc659f5ba8a08
parent505847d46117471a429df6ff483db0a029fbafb0 (diff)
downloademacs-1700f41d2005d62589a473df0bf44d4d81c7ec6e.tar.gz
emacs-1700f41d2005d62589a473df0bf44d4d81c7ec6e.zip
(help-mode): Undo 2001-10-07 change.
-rw-r--r--lisp/help-mode.el16
1 files changed, 13 insertions, 3 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 4e94af1b8ed..b3ca86f411d 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -60,7 +60,10 @@ The format is (FUNCTION ARGS...).")
60 60
61(setq-default help-xref-stack nil help-xref-stack-item nil) 61(setq-default help-xref-stack nil help-xref-stack-item nil)
62 62
63 63(defcustom help-mode-hook nil
64 "Hook run by `help-mode'."
65 :type 'hook
66 :group 'help)
64 67
65;; Button types used by help 68;; Button types used by help
66 69
@@ -137,15 +140,22 @@ The format is (FUNCTION ARGS...).")
137 140
138 141
139;;;###autoload 142;;;###autoload
140(define-derived-mode help-mode nil "Help" 143(defun help-mode ()
141 "Major mode for viewing help text and navigating references in it. 144 "Major mode for viewing help text and navigating references in it.
142Entry to this mode runs the normal hook `help-mode-hook'. 145Entry to this mode runs the normal hook `help-mode-hook'.
143Commands: 146Commands:
144\\{help-mode-map}" 147\\{help-mode-map}"
148 (interactive)
149 (kill-all-local-variables)
150 (use-local-map help-mode-map)
151 (setq mode-name "Help")
152 (setq major-mode 'help-mode)
153 (make-local-variable 'font-lock-defaults)
145 (setq font-lock-defaults nil) ; font-lock would defeat xref 154 (setq font-lock-defaults nil) ; font-lock would defeat xref
146 (view-mode) 155 (view-mode)
147 (make-local-variable 'view-no-disable-on-exit) 156 (make-local-variable 'view-no-disable-on-exit)
148 (setq view-no-disable-on-exit t)) 157 (setq view-no-disable-on-exit t)
158 (run-hooks 'help-mode-hook))
149 159
150;;;###autoload 160;;;###autoload
151(defun help-mode-setup () 161(defun help-mode-setup ()