]> git.eshelyaron.com Git - emacs.git/commitdiff
(iswitchb-exhibit): Use buffer-string instead
authorGerd Moellmann <gerd@gnu.org>
Sun, 12 Sep 1999 20:21:47 +0000 (20:21 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 12 Sep 1999 20:21:47 +0000 (20:21 +0000)
of buffer-substring because buffer-string doesn't copy the
prompt.

lisp/iswitchb.el

index f647c48f600b71f7ca6b860d0a8f1c05e953d263..d20f4f0e2802e3135973fbdc656a95970e4b669a 100644 (file)
@@ -1061,7 +1061,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-substring (point-min)(point-max)))
+      (let ((contents (buffer-string))
            (buffer-undo-list t))
        (save-excursion
          (goto-char (point-max))