Mercurial > emacs
comparison lisp/iswitchb.el @ 25791:6413bcf4ea32
(iswitchb-complete): Use minibuffer-prompt-end
instead of point-min in call to delete-region.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 23 Sep 1999 11:58:34 +0000 |
parents | 28e2ad53250c |
children | 5d6c941a666a |
comparison
equal
deleted
inserted
replaced
25790:7a57f8890220 | 25791:6413bcf4ea32 |
---|---|
566 (if (and (not (memq res '(t nil))) | 566 (if (and (not (memq res '(t nil))) |
567 (not (equal res iswitchb-text))) | 567 (not (equal res iswitchb-text))) |
568 ;; found something to complete, so put it in the minibuffer. | 568 ;; found something to complete, so put it in the minibuffer. |
569 (progn | 569 (progn |
570 (setq iswitchb-rescan nil) | 570 (setq iswitchb-rescan nil) |
571 (delete-region (point-min) (point)) | 571 (delete-region (minibuffer-prompt-end) (point)) |
572 (insert res)) | 572 (insert res)) |
573 ;; else nothing to complete | 573 ;; else nothing to complete |
574 (iswitchb-completion-help) | 574 (iswitchb-completion-help) |
575 ))))) | 575 ))))) |
576 | 576 |