diff options
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/simple.el | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3ece6ce0fb8..92246d2f95c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2004-07-23 Matt Hodges <matt@stchem.bham.ac.uk> (tiny change) | ||
| 2 | |||
| 3 | * simple.el (completion-setup-function): Compute the common parts | ||
| 4 | and the first difference place correctly when | ||
| 5 | partial-completion-mode is on. | ||
| 6 | |||
| 1 | 2004-07-22 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 7 | 2004-07-22 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 8 | ||
| 3 | * ps-print.el: Doc fix. Improve the DSC compliance of the generated | 9 | * ps-print.el: Doc fix. Improve the DSC compliance of the generated |
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) |