From: Glenn Morris Date: Wed, 8 Aug 2007 08:03:53 +0000 (+0000) Subject: (help-make-xrefs): Search for symbol constituents, rather than just `-'. X-Git-Tag: emacs-pretest-22.1.90~1039 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=42be947978e697c7f7fb124261a52c624c76d583;p=emacs.git (help-make-xrefs): Search for symbol constituents, rather than just `-'. --- 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.'. - "\\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))))