From 600f9d03904b78ced2cdbc4311668f354147e0a4 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 17 Oct 1999 16:48:22 +0000 Subject: [PATCH] (iswitchb-exhibit): Extract user-input only from the mini-buffer, without the prompt. --- lisp/ChangeLog | 3 +++ lisp/iswitchb.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4cadd1c6c23..df9e26a0260 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 1999-10-17 Gerd Moellmann + * 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. diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 4fa30f9742e..0cc379fc2bc 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el @@ -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)) -- 2.39.5