diff options
| author | Colin Walters | 2002-06-12 04:54:54 +0000 |
|---|---|---|
| committer | Colin Walters | 2002-06-12 04:54:54 +0000 |
| commit | d1282401ceae6aecee9dffe7de7d329e2db2f69f (patch) | |
| tree | 6ba7f2beac65abbac0446f630b5ee3241144fe2c | |
| parent | 93e5c2b583ef02132623197a090dd27eeb08ae05 (diff) | |
| download | emacs-d1282401ceae6aecee9dffe7de7d329e2db2f69f.tar.gz emacs-d1282401ceae6aecee9dffe7de7d329e2db2f69f.zip | |
(help-mode): Don't set `font-lock-defaults'.
| -rw-r--r-- | lisp/help-mode.el | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index d424ff4db77..9b0bf244cf4 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el | |||
| @@ -176,8 +176,6 @@ Commands: | |||
| 176 | (use-local-map help-mode-map) | 176 | (use-local-map help-mode-map) |
| 177 | (setq mode-name "Help") | 177 | (setq mode-name "Help") |
| 178 | (setq major-mode 'help-mode) | 178 | (setq major-mode 'help-mode) |
| 179 | (make-local-variable 'font-lock-defaults) | ||
| 180 | (setq font-lock-defaults nil) ; font-lock would defeat xref | ||
| 181 | (view-mode) | 179 | (view-mode) |
| 182 | (make-local-variable 'view-no-disable-on-exit) | 180 | (make-local-variable 'view-no-disable-on-exit) |
| 183 | (setq view-no-disable-on-exit t) | 181 | (setq view-no-disable-on-exit t) |
| @@ -206,21 +204,6 @@ Commands: | |||
| 206 | ;; similar should be done for widget doc strings, which currently use | 204 | ;; similar should be done for widget doc strings, which currently use |
| 207 | ;; another mechanism. | 205 | ;; another mechanism. |
| 208 | 206 | ||
| 209 | (defcustom help-highlight-p t | ||
| 210 | "*If non-nil, `help-make-xrefs' highlight cross-references. | ||
| 211 | Under a window system it highlights them with face defined by | ||
| 212 | `help-highlight-face'." | ||
| 213 | :group 'help | ||
| 214 | :version "20.3" | ||
| 215 | :type 'boolean) | ||
| 216 | |||
| 217 | (defcustom help-highlight-face 'underline | ||
| 218 | "Face used by `help-make-xrefs' to highlight cross-references. | ||
| 219 | Must be previously-defined." | ||
| 220 | :group 'help | ||
| 221 | :version "20.3" | ||
| 222 | :type 'face) | ||
| 223 | |||
| 224 | (defvar help-back-label (purecopy "[back]") | 207 | (defvar help-back-label (purecopy "[back]") |
| 225 | "Label to use by `help-make-xrefs' for the go-back reference.") | 208 | "Label to use by `help-make-xrefs' for the go-back reference.") |
| 226 | 209 | ||
| @@ -282,12 +265,11 @@ restore it properly when going back." | |||
| 282 | (defun help-make-xrefs (&optional buffer) | 265 | (defun help-make-xrefs (&optional buffer) |
| 283 | "Parse and hyperlink documentation cross-references in the given BUFFER. | 266 | "Parse and hyperlink documentation cross-references in the given BUFFER. |
| 284 | 267 | ||
| 285 | Find cross-reference information in a buffer and, if | 268 | Find cross-reference information in a buffer and activate such cross |
| 286 | `help-highlight-p' is non-nil, highlight it with face defined by | 269 | references for selection with `help-follow'. Cross-references have |
| 287 | `help-highlight-face'; activate such cross references for selection | 270 | the canonical form `...' and the type of reference may be |
| 288 | with `help-follow'. Cross-references have the canonical form `...' | 271 | disambiguated by the preceding word(s) used in |
| 289 | and the type of reference may be disambiguated by the preceding | 272 | `help-xref-symbol-regexp'. |
| 290 | word(s) used in `help-xref-symbol-regexp'. | ||
| 291 | 273 | ||
| 292 | If the variable `help-xref-mule-regexp' is non-nil, find also | 274 | If the variable `help-xref-mule-regexp' is non-nil, find also |
| 293 | cross-reference information related to multilingual environment | 275 | cross-reference information related to multilingual environment |