diff options
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1ebca8675ce..60c2b62cfe2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-10-17 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2011-10-17 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * minibuffer.el (completion--replace): Inherit surrounding properties | ||
| 4 | (bug#114). | ||
| 5 | (minibuffer-complete-and-exit): Use it. | ||
| 6 | |||
| 3 | * comint.el (comint--table-subvert): Quote the all-completions output | 7 | * comint.el (comint--table-subvert): Quote the all-completions output |
| 4 | (bug#9160). | 8 | (bug#9160). |
| 5 | 9 | ||
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index acb71d115d1..38785fc48e8 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -596,7 +596,7 @@ Moves point to the end of the new text." | |||
| 596 | (setq end (- end suffix-len)) | 596 | (setq end (- end suffix-len)) |
| 597 | (setq newtext (substring newtext 0 (- suffix-len)))) | 597 | (setq newtext (substring newtext 0 (- suffix-len)))) |
| 598 | (goto-char beg) | 598 | (goto-char beg) |
| 599 | (insert newtext) | 599 | (insert-and-inherit newtext) |
| 600 | (delete-region (point) (+ (point) (- end beg))) | 600 | (delete-region (point) (+ (point) (- end beg))) |
| 601 | (forward-char suffix-len))) | 601 | (forward-char suffix-len))) |
| 602 | 602 | ||
| @@ -927,9 +927,7 @@ If `minibuffer-completion-confirm' is `confirm-after-completion', | |||
| 927 | ;; file, so `try-completion' actually completes to | 927 | ;; file, so `try-completion' actually completes to |
| 928 | ;; that file. | 928 | ;; that file. |
| 929 | (= (length string) (length compl))) | 929 | (= (length string) (length compl))) |
| 930 | (goto-char end) | 930 | (completion--replace beg end compl)))) |
| 931 | (insert compl) | ||
| 932 | (delete-region beg end)))) | ||
| 933 | (exit-minibuffer)) | 931 | (exit-minibuffer)) |
| 934 | 932 | ||
| 935 | ((memq minibuffer-completion-confirm '(confirm confirm-after-completion)) | 933 | ((memq minibuffer-completion-confirm '(confirm confirm-after-completion)) |