aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorEli Zaretskii2004-07-23 11:53:07 +0000
committerEli Zaretskii2004-07-23 11:53:07 +0000
commit55c4a67ca8fe8e5ffd67b70bdb7d278bc99c84ea (patch)
tree3cd23d0d4796279634521bbdff257ced622c64dd /lisp/simple.el
parent9586e1d3a4255c58bf827400ab7c038a3ee988a3 (diff)
downloademacs-55c4a67ca8fe8e5ffd67b70bdb7d278bc99c84ea.tar.gz
emacs-55c4a67ca8fe8e5ffd67b70bdb7d278bc99c84ea.zip
(completion-setup-function): Compute the common parts
and the first difference place correctly when partial-completion-mode is on.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 9d61a390575..1e112b1be74 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4313,6 +4313,13 @@ of the differing parts is, by contrast, slightly highlighted."
4313 (if minibuffer-completing-file-name 4313 (if minibuffer-completing-file-name
4314 (with-current-buffer mainbuf 4314 (with-current-buffer mainbuf
4315 (setq default-directory (file-name-directory mbuf-contents)))) 4315 (setq default-directory (file-name-directory mbuf-contents))))
4316 ;; If partial-completion-mode is on, point might not be after the
4317 ;; last character in the minibuffer.
4318 ;; FIXME: This still doesn't work if the text to be completed
4319 ;; starts with a `-'.
4320 (when (and partial-completion-mode (not (eobp)))
4321 (setq mbuf-contents
4322 (substring mbuf-contents 0 (- (point) (point-max)))))
4316 (with-current-buffer standard-output 4323 (with-current-buffer standard-output
4317 (completion-list-mode) 4324 (completion-list-mode)
4318 (make-local-variable 'completion-reference-buffer) 4325 (make-local-variable 'completion-reference-buffer)