diff options
author | Glenn Morris <rgm@gnu.org> | 2007-08-08 08:03:53 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-08-08 08:03:53 +0000 |
commit | 42be947978e697c7f7fb124261a52c624c76d583 (patch) | |
tree | 91ff0e53a4d8992c909c7f9d6b6788a6c5576394 /lisp/help-mode.el | |
parent | 6c4a608e90ea2751932464690fcb7affa41b047a (diff) |
(help-make-xrefs): Search for symbol constituents, rather than just `-'.
Diffstat (limited to 'lisp/help-mode.el')
-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." ;; An obvious case of a key substitution: (save-excursion (while (re-search-forward - ;; Assume command name is only word characters - ;; and dashes to get things like `use M-x foo.'. - "\\<M-x\\s-+\\(\\sw\\(\\sw\\|-\\)+\\)" nil t) + ;; Assume command name is only word and symbol + ;; characters to get things like `use M-x foo->bar'. + "\\<M-x\\s-+\\(\\sw\\(\\sw\\|\\s_\\)+\\)" nil t) (let ((sym (intern-soft (match-string 1)))) (if (fboundp sym) (help-xref-button 1 'help-function sym))))) @@ -464,7 +464,7 @@ that." (end-of-line) (skip-chars-backward "^ \t\n") (if (and (>= (current-column) col) - (looking-at "\\(\\sw\\|-\\)+$")) + (looking-at "\\(\\sw\\|\\s_\\)+$")) (let ((sym (intern-soft (match-string 0)))) (if (fboundp sym) (help-xref-button 0 'help-function sym)))) |