changeset 82334:081f1ab64053

(help-make-xrefs): Fix previous change.
author Glenn Morris <rgm@gnu.org>
date Thu, 09 Aug 2007 02:48:42 +0000
parents ad137165d9cc
children 310b4cdcc703
files lisp/help-mode.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help-mode.el	Thu Aug 09 01:42:13 2007 +0000
+++ b/lisp/help-mode.el	Thu Aug 09 02:48:42 2007 +0000
@@ -461,9 +461,11 @@
               ;; An obvious case of a key substitution:
               (save-excursion
                 (while (re-search-forward
-			;; Assume command name is only word and symbol
+                        ;; 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)
+                        ;; Command required to end with word constituent
+                        ;; to avoid `.' at end of a sentence.
+                        "\\<M-x\\s-+\\(\\sw\\(\\sw\\|\\s_\\)*\\sw\\)" nil t)
                   (let ((sym (intern-soft (match-string 1))))
                     (if (fboundp sym)
                         (help-xref-button 1 'help-function sym)))))