From 79abec2feefa6169b8073cacde98a02d8087c19b Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 1 Mar 2017 16:53:08 -0500 Subject: [PATCH] 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 "*?". --- lisp/international/mule.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 8754f7f27d7..fa3ad80e2f7 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el @@ -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