From e83062243f0a06738263283ee405e163e7609fab Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 28 Dec 1999 18:14:44 +0000 Subject: [PATCH] (icomplete-exhibit): Adapt to prompt in buffer. --- lisp/ChangeLog | 2 ++ lisp/icomplete.el | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1a8f0987689..21a6563710d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 1999-12-28 Gerd Moellmann + * icomplete.el (icomplete-exhibit): Adapt to prompt in buffer. + * progmodes/cc-cmds.el (c-fill-paragraph): Don't delete white space in front of a C-style comment end. diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 1e49e0ca7bf..22f63b670ed 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -246,7 +246,7 @@ and `minibuffer-setup-hook'." Should be run via minibuffer `post-command-hook'. See `icomplete-mode' and `minibuffer-setup-hook'." (if (icomplete-simple-completing-p) - (let ((contents (buffer-substring (point-min)(point-max))) + (let ((contents (buffer-substring (minibuffer-prompt-end)(point-max))) (buffer-undo-list t)) (save-excursion (goto-char (point-max)) -- 2.39.5