+1999-11-04 Gerd Moellmann <gerd@gnu.org>
+
+ * complete.el (PC-do-completion): Use minibuffer-prompt-end to
+ find the start of the text. Use field-string to read the user
+ input.
+
1999-11-03 Gerd Moellmann <gerd@gnu.org>
* faces.el (make-face-bold, make-face-unbold, make-face-italic)
of `minibuffer-completion-table' and the minibuffer contents.")
(defun PC-do-completion (&optional mode beg end)
- (or beg (setq beg (point-min)))
+ (or beg (setq beg (minibuffer-prompt-end)))
(or end (setq end (point-max)))
(let* ((table minibuffer-completion-table)
(pred minibuffer-completion-predicate)
;; We changed it... enough to be complete?
(and (eq mode 'exit)
- (PC-is-complete-p (buffer-string) table pred))
+ (PC-is-complete-p (field-string) table pred))
;; If totally ambiguous, display a list of completions
(if (or completion-auto-help