1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

(icomplete-exhibit): Adapt to prompt in buffer.

This commit is contained in:
Gerd Moellmann 1999-12-28 18:14:44 +00:00
parent a3d4e58757
commit e83062243f
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
1999-12-28 Gerd Moellmann <gerd@gnu.org>
* 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.

View file

@ -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))