aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-03-11 19:13:52 +0000
committerRichard M. Stallman1995-03-11 19:13:52 +0000
commit3f299281ab364f4b267e328635186cc5a3bbcb8c (patch)
tree333968247c74e6bcca7ae1aac445bf250730a9bb
parent855d862724833981510ca29302ff18f1d2b217c9 (diff)
downloademacs-3f299281ab364f4b267e328635186cc5a3bbcb8c.tar.gz
emacs-3f299281ab364f4b267e328635186cc5a3bbcb8c.zip
(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)."
2659 (if (and (not (eobp)) (get-text-property (point) 'mouse-face)) 2659 (if (and (not (eobp)) (get-text-property (point) 'mouse-face))
2660 (setq end (point) beg (1+ (point)))) 2660 (setq end (point) beg (1+ (point))))
2661 (if (and (not (bobp)) (get-text-property (1- (point)) 'mouse-face)) 2661 (if (and (not (bobp)) (get-text-property (1- (point)) 'mouse-face))
2662 (setq end (1- (point)) beg(point))) 2662 (setq end (1- (point)) beg (point)))
2663 (if (null beg) 2663 (if (null beg)
2664 (error "No completion here")) 2664 (error "No completion here"))
2665 (setq beg (previous-single-property-change beg 'mouse-face)) 2665 (setq beg (previous-single-property-change beg 'mouse-face))
@@ -2737,11 +2737,13 @@ Use \\<completion-list-mode-map>\\[mouse-choose-completion] to select one\
2737 2737
2738(defun completion-setup-function () 2738(defun completion-setup-function ()
2739 (save-excursion 2739 (save-excursion
2740 (let ((mainbuf (current-buffer))) 2740 (let ((mainbuf (current-buffer))
2741 (base-size (- (point-max) (point-min))))
2741 (set-buffer standard-output) 2742 (set-buffer standard-output)
2742 (completion-list-mode) 2743 (completion-list-mode)
2743 (make-local-variable 'completion-reference-buffer) 2744 (make-local-variable 'completion-reference-buffer)
2744 (setq completion-reference-buffer mainbuf) 2745 (setq completion-reference-buffer mainbuf)
2746 (setq completion-base-size base-size)
2745 (goto-char (point-min)) 2747 (goto-char (point-min))
2746 (if window-system 2748 (if window-system
2747 (insert (substitute-command-keys 2749 (insert (substitute-command-keys