mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-12 16:23:57 +00:00
(PC-do-completion): If completion-ignore-case is non-nil, replace
field with completion string before exiting.
This commit is contained in:
parent
50991b39b1
commit
b89d8a7719
@ -404,8 +404,15 @@ of `minibuffer-completion-table' and the minibuffer contents.")
|
||||
|
||||
;; Check if buffer contents can already be considered complete
|
||||
(if (and (eq mode 'exit)
|
||||
(test-completion-ignore-case str table pred))
|
||||
'complete
|
||||
(test-completion str table pred))
|
||||
(progn
|
||||
;; If completion-ignore-case is non-nil, insert the
|
||||
;; completion string since that may have a different case.
|
||||
(when completion-ignore-case
|
||||
(setq str (try-completion str table pred))
|
||||
(delete-region beg end)
|
||||
(insert str))
|
||||
'complete)
|
||||
|
||||
;; Do substitutions in directory names
|
||||
(and filename
|
||||
|
Loading…
Reference in New Issue
Block a user