# HG changeset patch # User Glenn Morris # Date 1186560233 0 # Node ID 480b6a56b1bf486448d0c6f77def04c712ef3a06 # Parent 0203a38a9036b4d4ab693a028bac9a9e9268df83 (help-make-xrefs): Search for symbol constituents, rather than just `-'. diff -r 0203a38a9036 -r 480b6a56b1bf lisp/help-mode.el --- a/lisp/help-mode.el Wed Aug 08 08:01:42 2007 +0000 +++ b/lisp/help-mode.el Wed Aug 08 08:03:53 2007 +0000 @@ -436,9 +436,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.'. - "\\bar'. + "\\= (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))))