changeset 10959:e43125b71452

(completion-setup-function): Set completion-base-size.
author Richard M. Stallman <rms@gnu.org>
date Sat, 11 Mar 1995 19:13:52 +0000
parents c0d821d95739
children d6d3905ec550
files lisp/simple.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Sat Mar 11 04:40:18 1995 +0000
+++ b/lisp/simple.el	Sat Mar 11 19:13:52 1995 +0000
@@ -2659,7 +2659,7 @@
     (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 @@
 
 (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