From: Leo Liu Date: Wed, 19 Jun 2013 02:02:30 +0000 (+0800) Subject: * progmodes/octave.el (octave-help): Fix regexp. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2016^2~59 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/ad5281251b55cc7e872bb6b0a2ab7871f024a1b2 * progmodes/octave.el (octave-help): Fix regexp. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ea0deb9094..4add465d0c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2013-06-19 Leo Liu + + * progmodes/octave.el (octave-help): Fix regexp. + 2013-06-18 Lars Magne Ingebrigtsen * net/shr.el (shr-make-table-1): Implement . diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index b193646727..4e5a3058d4 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -1666,9 +1666,7 @@ code line." (when (re-search-forward "^\\s-*See also:" nil t) (let ((end (save-excursion (re-search-forward "^\\s-*$" nil t)))) (while (re-search-forward - ;; Match operators and symbols. - "\\(?1:\\s.+?\\)\\(?:$\\|[,;]\\|\\s-\\)\\|\\_<\\(?1:\\(?:\\sw\\|\\s_\\)+\\)\\_>" - end t) + "\\s-*\\([^,\n]+?\\)\\s-*\\(?:[,]\\|[.]?$\\)" end t) (make-text-button (match-beginning 1) (match-end 1) :type 'octave-help-function))))) (octave-help-mode)))))