aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-08-08 08:00:43 +0000
committerGlenn Morris2007-08-08 08:00:43 +0000
commit123437b4c199fcd6fd2c7cd9489da721ebf1864d (patch)
treebf2435c337fdfe8eee307e317af8507604188947
parente6cd99dc691dce64e1878b426c59c58e31185627 (diff)
downloademacs-123437b4c199fcd6fd2c7cd9489da721ebf1864d.tar.gz
emacs-123437b4c199fcd6fd2c7cd9489da721ebf1864d.zip
(help-make-xrefs): Search for symbol constituents, rather than just `-'.
-rw-r--r--lisp/help-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 28ac693f870..fd17a93a29f 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -461,9 +461,9 @@ that."
461 ;; An obvious case of a key substitution: 461 ;; An obvious case of a key substitution:
462 (save-excursion 462 (save-excursion
463 (while (re-search-forward 463 (while (re-search-forward
464 ;; Assume command name is only word characters 464 ;; Assume command name is only word and symbol
465 ;; and dashes to get things like `use M-x foo.'. 465 ;; characters to get things like `use M-x foo->bar'.
466 "\\<M-x\\s-+\\(\\sw\\(\\sw\\|-\\)+\\)" nil t) 466 "\\<M-x\\s-+\\(\\sw\\(\\sw\\|\\s_\\)+\\)" nil t)
467 (let ((sym (intern-soft (match-string 1)))) 467 (let ((sym (intern-soft (match-string 1))))
468 (if (fboundp sym) 468 (if (fboundp sym)
469 (help-xref-button 1 'help-function sym))))) 469 (help-xref-button 1 'help-function sym)))))
@@ -489,7 +489,7 @@ that."
489 (end-of-line) 489 (end-of-line)
490 (skip-chars-backward "^ \t\n") 490 (skip-chars-backward "^ \t\n")
491 (if (and (>= (current-column) col) 491 (if (and (>= (current-column) col)
492 (looking-at "\\(\\sw\\|-\\)+$")) 492 (looking-at "\\(\\sw\\|\\s_\\)+$"))
493 (let ((sym (intern-soft (match-string 0)))) 493 (let ((sym (intern-soft (match-string 0))))
494 (if (fboundp sym) 494 (if (fboundp sym)
495 (help-xref-button 0 'help-function sym)))) 495 (help-xref-button 0 'help-function sym))))