summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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