diff options
| author | Glenn Morris | 2007-08-08 08:03:53 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-08-08 08:03:53 +0000 |
| commit | 42be947978e697c7f7fb124261a52c624c76d583 (patch) | |
| tree | 91ff0e53a4d8992c909c7f9d6b6788a6c5576394 | |
| parent | 6c4a608e90ea2751932464690fcb7affa41b047a (diff) | |
| download | emacs-42be947978e697c7f7fb124261a52c624c76d583.tar.gz emacs-42be947978e697c7f7fb124261a52c624c76d583.zip | |
(help-make-xrefs): Search for symbol constituents, rather than just `-'.
| -rw-r--r-- | lisp/help-mode.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 5344d750eef..818a0111cb8 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el | |||
| @@ -436,9 +436,9 @@ that." | |||
| 436 | ;; An obvious case of a key substitution: | 436 | ;; An obvious case of a key substitution: |
| 437 | (save-excursion | 437 | (save-excursion |
| 438 | (while (re-search-forward | 438 | (while (re-search-forward |
| 439 | ;; Assume command name is only word characters | 439 | ;; Assume command name is only word and symbol |
| 440 | ;; and dashes to get things like `use M-x foo.'. | 440 | ;; characters to get things like `use M-x foo->bar'. |
| 441 | "\\<M-x\\s-+\\(\\sw\\(\\sw\\|-\\)+\\)" nil t) | 441 | "\\<M-x\\s-+\\(\\sw\\(\\sw\\|\\s_\\)+\\)" nil t) |
| 442 | (let ((sym (intern-soft (match-string 1)))) | 442 | (let ((sym (intern-soft (match-string 1)))) |
| 443 | (if (fboundp sym) | 443 | (if (fboundp sym) |
| 444 | (help-xref-button 1 'help-function sym))))) | 444 | (help-xref-button 1 'help-function sym))))) |
| @@ -464,7 +464,7 @@ that." | |||
| 464 | (end-of-line) | 464 | (end-of-line) |
| 465 | (skip-chars-backward "^ \t\n") | 465 | (skip-chars-backward "^ \t\n") |
| 466 | (if (and (>= (current-column) col) | 466 | (if (and (>= (current-column) col) |
| 467 | (looking-at "\\(\\sw\\|-\\)+$")) | 467 | (looking-at "\\(\\sw\\|\\s_\\)+$")) |
| 468 | (let ((sym (intern-soft (match-string 0)))) | 468 | (let ((sym (intern-soft (match-string 0)))) |
| 469 | (if (fboundp sym) | 469 | (if (fboundp sym) |
| 470 | (help-xref-button 0 'help-function sym)))) | 470 | (help-xref-button 0 'help-function sym)))) |