mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
* lisp/minibuffer.el (completion--replace): Inherit surrounding properties.
(minibuffer-complete-and-exit): Use it. Fixes: debbugs:114
This commit is contained in:
parent
8b79f3e0ed
commit
96a8a0dfd6
@ -1,5 +1,9 @@
|
||||
2011-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* minibuffer.el (completion--replace): Inherit surrounding properties
|
||||
(bug#114).
|
||||
(minibuffer-complete-and-exit): Use it.
|
||||
|
||||
* comint.el (comint--table-subvert): Quote the all-completions output
|
||||
(bug#9160).
|
||||
|
||||
|
@ -596,7 +596,7 @@ Moves point to the end of the new text."
|
||||
(setq end (- end suffix-len))
|
||||
(setq newtext (substring newtext 0 (- suffix-len))))
|
||||
(goto-char beg)
|
||||
(insert newtext)
|
||||
(insert-and-inherit newtext)
|
||||
(delete-region (point) (+ (point) (- end beg)))
|
||||
(forward-char suffix-len)))
|
||||
|
||||
@ -927,9 +927,7 @@ If `minibuffer-completion-confirm' is `confirm-after-completion',
|
||||
;; file, so `try-completion' actually completes to
|
||||
;; that file.
|
||||
(= (length string) (length compl)))
|
||||
(goto-char end)
|
||||
(insert compl)
|
||||
(delete-region beg end))))
|
||||
(completion--replace beg end compl))))
|
||||
(exit-minibuffer))
|
||||
|
||||
((memq minibuffer-completion-confirm '(confirm confirm-after-completion))
|
||||
|
Loading…
Reference in New Issue
Block a user