1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-04 22:50:59 -08:00

Fix for coding-system completion (bug#23670)

* lisp/international/mule.el (read-buffer-file-coding-system):
Ensure that completion-pcm--delim-wild-regex is enclosed in parens,
so that completion-pcm--pattern->regex can append "*?".
This commit is contained in:
Glenn Morris 2017-03-01 16:53:08 -05:00
parent 207ee94b1d
commit 79abec2fee

View file

@ -1311,8 +1311,8 @@ Internal use only.")
preferred))))))
(completion-ignore-case t)
(completion-pcm--delim-wild-regex ; Let "u8" complete to "utf-8".
(concat completion-pcm--delim-wild-regex
"\\|\\([[:alpha:]]\\)[[:digit:]]"))
(concat "\\(?:" completion-pcm--delim-wild-regex
"\\|\\([[:alpha:]]\\)[[:digit:]]\\)"))
(cs (completing-read
(format "Coding system for saving file (default %s): " default)
combined-table