Mercurial > emacs
changeset 30645:4706d5e24141
(try-expand-line, try-expand-line-all-buffers): Only use comint-prompt-regexp
if comint-use-prompt-regexp-instead-of-fields is non-nil.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 07 Aug 2000 14:57:22 +0000 |
parents | ce7385745191 |
children | bb2ebaf63949 |
files | lisp/hippie-exp.el |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/hippie-exp.el Mon Aug 07 14:56:02 2000 +0000 +++ b/lisp/hippie-exp.el Mon Aug 07 14:57:22 2000 +0000 @@ -634,6 +634,7 @@ string). It returns t if a new completion is found, nil otherwise." (let ((expansion ()) (strip-prompt (and (get-buffer-process (current-buffer)) + comint-use-prompt-regexp-instead-of-fields comint-prompt-regexp))) (if (not old) (progn @@ -680,6 +681,7 @@ string). It returns t if a new completion is found, nil otherwise." (let ((expansion ()) (strip-prompt (and (get-buffer-process (current-buffer)) + comint-use-prompt-regexp-instead-of-fields comint-prompt-regexp)) (buf (current-buffer)) (orig-case-fold-search case-fold-search)) @@ -706,6 +708,7 @@ (widen)) (goto-char he-search-loc) (setq strip-prompt (and (get-buffer-process (current-buffer)) + comint-use-prompt-regexp-instead-of-fields comint-prompt-regexp)) (setq expansion (let ((case-fold-search orig-case-fold-search))