changeset 82327:b6f47ca099b7

(help-make-xrefs): Search for symbol constituents, rather than just `-'.
author Glenn Morris <rgm@gnu.org>
date Wed, 08 Aug 2007 08:00:43 +0000
parents 53b6f6eafb28
children 6187a43977b4
files lisp/help-mode.el
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help-mode.el	Tue Aug 07 21:06:29 2007 +0000
+++ b/lisp/help-mode.el	Wed Aug 08 08:00:43 2007 +0000
@@ -461,9 +461,9 @@
               ;; 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)))))
@@ -489,7 +489,7 @@
 		      (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))))