aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-12-28 18:14:44 +0000
committerGerd Moellmann1999-12-28 18:14:44 +0000
commite83062243f0a06738263283ee405e163e7609fab (patch)
tree413906adb98d4b67c79c75918355cda03532a19e
parenta3d4e58757504cd644e5c587c101b79a2ee5b619 (diff)
downloademacs-e83062243f0a06738263283ee405e163e7609fab.tar.gz
emacs-e83062243f0a06738263283ee405e163e7609fab.zip
(icomplete-exhibit): Adapt to prompt in buffer.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/icomplete.el2
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1a8f0987689..21a6563710d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
11999-12-28 Gerd Moellmann <gerd@gnu.org> 11999-12-28 Gerd Moellmann <gerd@gnu.org>
2 2
3 * icomplete.el (icomplete-exhibit): Adapt to prompt in buffer.
4
3 * progmodes/cc-cmds.el (c-fill-paragraph): Don't delete white 5 * progmodes/cc-cmds.el (c-fill-paragraph): Don't delete white
4 space in front of a C-style comment end. 6 space in front of a C-style comment end.
5 7
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'."
246Should be run via minibuffer `post-command-hook'. See `icomplete-mode' 246Should be run via minibuffer `post-command-hook'. See `icomplete-mode'
247and `minibuffer-setup-hook'." 247and `minibuffer-setup-hook'."
248 (if (icomplete-simple-completing-p) 248 (if (icomplete-simple-completing-p)
249 (let ((contents (buffer-substring (point-min)(point-max))) 249 (let ((contents (buffer-substring (minibuffer-prompt-end)(point-max)))
250 (buffer-undo-list t)) 250 (buffer-undo-list t))
251 (save-excursion 251 (save-excursion
252 (goto-char (point-max)) 252 (goto-char (point-max))