mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08: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
2 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue