]> code.delx.au - gnu-emacs/commitdiff
(iswitchb-exhibit): Extract user-input only
authorGerd Moellmann <gerd@gnu.org>
Sun, 17 Oct 1999 16:48:22 +0000 (16:48 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 17 Oct 1999 16:48:22 +0000 (16:48 +0000)
from the mini-buffer, without the prompt.

lisp/ChangeLog
lisp/iswitchb.el

index 4cadd1c6c2338a3b8fbf89ee5a1b1515c0ab9862..df9e26a0260bf9818a41495572d6dac66312b7a7 100644 (file)
@@ -1,5 +1,8 @@
 1999-10-17  Gerd Moellmann  <gerd@gnu.org>
 
+       * iswitchb.el (iswitchb-exhibit): Extract user-input only
+       from the mini-buffer, without the prompt.
+       
        * simple.el (minibuffer-prompt-end): Return the position
        after the prompt, not the position of that last character
        of the prompt.
index 4fa30f9742ee83ef2c258d9b562bf56a206aec61..0cc379fc2bcb042ef18f0d15438e8bd2d56e3b65 100644 (file)
@@ -1065,7 +1065,7 @@ Copied from `icomplete-exhibit' with two changes:
 2. It calls my completion routine rather than the standard completion."
 
   (if iswitchb-use-mycompletion
-      (let ((contents (buffer-string))
+      (let ((contents (buffer-substring (minibuffer-prompt-end) (point-max)))
            (buffer-undo-list t))
        (save-excursion
          (goto-char (point-max))