comparison lisp/help-mode.el @ 82334:081f1ab64053

(help-make-xrefs): Fix previous change.
author Glenn Morris <rgm@gnu.org>
date Thu, 09 Aug 2007 02:48:42 +0000
parents b6f47ca099b7
children 4077065d3026 424b655804ca
comparison
equal deleted inserted replaced
82333:ad137165d9cc 82334:081f1ab64053
459 ((fboundp sym) 459 ((fboundp sym)
460 (help-xref-button 8 'help-function sym))))))) 460 (help-xref-button 8 'help-function sym)))))))
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 and symbol 464 ;; Assume command name is only word and symbol
465 ;; characters to get things like `use M-x foo->bar'. 465 ;; characters to get things like `use M-x foo->bar'.
466 "\\<M-x\\s-+\\(\\sw\\(\\sw\\|\\s_\\)+\\)" nil t) 466 ;; Command required to end with word constituent
467 ;; to avoid `.' at end of a sentence.
468 "\\<M-x\\s-+\\(\\sw\\(\\sw\\|\\s_\\)*\\sw\\)" nil t)
467 (let ((sym (intern-soft (match-string 1)))) 469 (let ((sym (intern-soft (match-string 1))))
468 (if (fboundp sym) 470 (if (fboundp sym)
469 (help-xref-button 1 'help-function sym))))) 471 (help-xref-button 1 'help-function sym)))))
470 ;; Look for commands in whole keymap substitutions: 472 ;; Look for commands in whole keymap substitutions:
471 (save-excursion 473 (save-excursion