diff options
| author | Richard M. Stallman | 1996-07-29 23:39:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-07-29 23:39:34 +0000 |
| commit | dd7d85bab7b6355f27f1d313775d03add73087ce (patch) | |
| tree | 475c576422d028d2e2945a8f7ce67e82636da12c | |
| parent | 4cf1b2e5764dce39100211cc57010ea02cec22bd (diff) | |
| download | emacs-dd7d85bab7b6355f27f1d313775d03add73087ce.tar.gz emacs-dd7d85bab7b6355f27f1d313775d03add73087ce.zip | |
(help-fontify-buffer-function): Function deleted.
(help-mode): Set font-lock-defaults in simple way again.
| -rw-r--r-- | lisp/help.el | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lisp/help.el b/lisp/help.el index 67f8bb099ea..59cc1974a7d 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -107,14 +107,6 @@ | |||
| 107 | (list (concat "\\<:" sym-char "+\\>") 0 'font-lock-reference-face t)))) | 107 | (list (concat "\\<:" sym-char "+\\>") 0 'font-lock-reference-face t)))) |
| 108 | "Default expressions to highlight in Help mode.") | 108 | "Default expressions to highlight in Help mode.") |
| 109 | 109 | ||
| 110 | (defun help-fontify-buffer-function () | ||
| 111 | ;; This function's symbol is bound to font-lock-fontify-buffer-function. | ||
| 112 | (let ((font-lock-fontify-region-function 'font-lock-default-fontify-region)) | ||
| 113 | ;; Fontify as normal. | ||
| 114 | (font-lock-default-fontify-buffer) | ||
| 115 | ;; Prevent Font Lock mode from kicking in. | ||
| 116 | (setq font-lock-fontified t))) | ||
| 117 | |||
| 118 | (defun help-mode () | 110 | (defun help-mode () |
| 119 | "Major mode for viewing help text. | 111 | "Major mode for viewing help text. |
| 120 | Entry to this mode runs the normal hook `help-mode-hook'. | 112 | Entry to this mode runs the normal hook `help-mode-hook'. |
| @@ -126,11 +118,7 @@ Commands: | |||
| 126 | (setq mode-name "Help") | 118 | (setq mode-name "Help") |
| 127 | (setq major-mode 'help-mode) | 119 | (setq major-mode 'help-mode) |
| 128 | (make-local-variable 'font-lock-defaults) | 120 | (make-local-variable 'font-lock-defaults) |
| 129 | (setq font-lock-defaults | 121 | (setq font-lock-defaults '(help-font-lock-keywords)) |
| 130 | '(help-font-lock-keywords nil nil nil nil | ||
| 131 | (font-lock-inhibit-thing-lock . (lazy-lock-mode)) | ||
| 132 | (font-lock-fontify-region-function . ignore) | ||
| 133 | (font-lock-fontify-buffer-function . help-fontify-buffer-function))) | ||
| 134 | (view-mode) | 122 | (view-mode) |
| 135 | (run-hooks 'help-mode-hook)) | 123 | (run-hooks 'help-mode-hook)) |
| 136 | 124 | ||