mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-21 18:23:59 +00:00
Small fix for he-line-search-regexp
* lisp/hippie-exp.el (he-line-search-regexp): Handle comint-prompt-regexp containing subgroups. Fixes: debbugs:17529
This commit is contained in:
parent
903204bb53
commit
486eebacf3
@ -1,3 +1,8 @@
|
||||
2014-05-23 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* hippie-exp.el (he-line-search-regexp):
|
||||
Handle comint-prompt-regexp containing subgroups. (Bug#17529)
|
||||
|
||||
2014-05-23 Stephen Berman <stephen.berman@gmx.net>
|
||||
|
||||
* calendar/todo-mode.el: Remove dependence on auto-mode-alist,
|
||||
|
@ -715,7 +715,7 @@ string). It returns t if a new completion is found, nil otherwise."
|
||||
|
||||
(defun he-line-search-regexp (pat strip-prompt)
|
||||
(if strip-prompt
|
||||
(concat "\\(" comint-prompt-regexp "\\|^\\s-*\\)\\("
|
||||
(concat "\\(" comint-prompt-regexp "\\|^\\s-*\\)\\(?2:"
|
||||
(regexp-quote pat)
|
||||
"[^\n]*[^ \t\n]\\)")
|
||||
(concat "^\\(\\s-*\\)\\("
|
||||
|
Loading…
Reference in New Issue
Block a user