From ad5281251b55cc7e872bb6b0a2ab7871f024a1b2 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Wed, 19 Jun 2013 10:02:30 +0800 Subject: [PATCH] * progmodes/octave.el (octave-help): Fix regexp. --- lisp/ChangeLog | 4 ++++ lisp/progmodes/octave.el | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ea0deb90946..4add465d0c0 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 b1936467274..4e5a3058d4e 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))))) -- 2.39.2