aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-06-06 12:40:36 +0000
committerRichard M. Stallman2005-06-06 12:40:36 +0000
commit77da210789914ef3f939c9b7fb77214a067ee787 (patch)
tree8c4da1b79abbf48afd7d0b34474dff637533dd95
parentc476bcb06c7fff47d9223555be774236e06462ce (diff)
downloademacs-77da210789914ef3f939c9b7fb77214a067ee787.tar.gz
emacs-77da210789914ef3f939c9b7fb77214a067ee787.zip
(completion-setup-function): Look for completion-base-size-function
property of minibuffer-completion-table.
-rw-r--r--lisp/simple.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 6d6c3806889..097dde16d01 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4833,7 +4833,11 @@ of the differing parts is, by contrast, slightly highlighted."
4833 (- (point) (minibuffer-prompt-end))))) 4833 (- (point) (minibuffer-prompt-end)))))
4834 ;; Otherwise, in minibuffer, the whole input is being completed. 4834 ;; Otherwise, in minibuffer, the whole input is being completed.
4835 (if (minibufferp mainbuf) 4835 (if (minibufferp mainbuf)
4836 (setq completion-base-size 0))) 4836 (if (and (symbolp minibuffer-completion-table)
4837 (get minibuffer-completion-table 'completion-base-size-function))
4838 (setq completion-base-size
4839 (funcall (get minibuffer-completion-table 'completion-base-size-function)))
4840 (setq completion-base-size 0))))
4837 ;; Put faces on first uncommon characters and common parts. 4841 ;; Put faces on first uncommon characters and common parts.
4838 (when completion-base-size 4842 (when completion-base-size
4839 (let* ((common-string-length 4843 (let* ((common-string-length