summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-03-11 19:13:52 +0000
committerRichard M. Stallman <rms@gnu.org>1995-03-11 19:13:52 +0000
commit3f299281ab364f4b267e328635186cc5a3bbcb8c (patch)
tree333968247c74e6bcca7ae1aac445bf250730a9bb
parent855d862724833981510ca29302ff18f1d2b217c9 (diff)
downloademacs-3f299281ab364f4b267e328635186cc5a3bbcb8c.tar.gz
(completion-setup-function): Set completion-base-size.
-rw-r--r--lisp/simple.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 50ee7a90cc0..8fd370cf71b 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2659,7 +2659,7 @@ WIth prefix argument N, move N items (negative N means move backward)."
(if (and (not (eobp)) (get-text-property (point) 'mouse-face))
(setq end (point) beg (1+ (point))))
(if (and (not (bobp)) (get-text-property (1- (point)) 'mouse-face))
- (setq end (1- (point)) beg(point)))
+ (setq end (1- (point)) beg (point)))
(if (null beg)
(error "No completion here"))
(setq beg (previous-single-property-change beg 'mouse-face))
@@ -2737,11 +2737,13 @@ Use \\<completion-list-mode-map>\\[mouse-choose-completion] to select one\
(defun completion-setup-function ()
(save-excursion
- (let ((mainbuf (current-buffer)))
+ (let ((mainbuf (current-buffer))
+ (base-size (- (point-max) (point-min))))
(set-buffer standard-output)
(completion-list-mode)
(make-local-variable 'completion-reference-buffer)
(setq completion-reference-buffer mainbuf)
+ (setq completion-base-size base-size)
(goto-char (point-min))
(if window-system
(insert (substitute-command-keys