From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#23670: 24.5; error when complete coding system Date: Wed, 01 Mar 2017 16:54:32 -0500 Message-ID: <5wpoi0oe7b.fsf@fencepost.gnu.org> References: <87fusxkvdf.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488405324 24977 195.159.176.226 (1 Mar 2017 21:55:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 21:55:24 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) To: 23670-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 01 22:55:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjCDG-0004rM-SS for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Mar 2017 22:55:10 +0100 Original-Received: from localhost ([::1]:48988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjCDJ-0001nS-Vt for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Mar 2017 16:55:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjCD9-0001kU-0M for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2017 16:55:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjCD8-00076f-9I for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2017 16:55:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjCD8-00076Z-5b for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2017 16:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cjCD7-0004y6-Vy for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2017 16:55:02 -0500 Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Mar 2017 21:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 23670 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Mail-Followup-To: 23670@debbugs.gnu.org, rgm@gnu.org, ynyaaa@gmail.com Original-Received: via spool by 23670-done@debbugs.gnu.org id=D23670.148840528019062 (code D ref 23670); Wed, 01 Mar 2017 21:55:01 +0000 Original-Received: (at 23670-done) by debbugs.gnu.org; 1 Mar 2017 21:54:40 +0000 Original-Received: from localhost ([127.0.0.1]:34971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjCCm-0004xO-DF for submit@debbugs.gnu.org; Wed, 01 Mar 2017 16:54:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjCCk-0004xC-Nq for 23670-done@debbugs.gnu.org; Wed, 01 Mar 2017 16:54:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjCCe-00070v-Qk for 23670-done@debbugs.gnu.org; Wed, 01 Mar 2017 16:54:33 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjCCe-00070i-O3 for 23670-done@debbugs.gnu.org; Wed, 01 Mar 2017 16:54:32 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cjCCe-0002C6-6A; Wed, 01 Mar 2017 16:54:32 -0500 X-Spook: Islam Abduganievich Karimov JUWTF Aid FARC Uzi insurgency X-Ran: L@3CqEQL2R.!=puh^WVPC X-Hue: cyan X-Attribution: GM In-Reply-To: <87fusxkvdf.fsf@gmail.com> (ynyaaa@gmail.com's message of "Wed, 01 Jun 2016 20:21:16 +0900") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130009 Archived-At: Version: 26.1 ynyaaa@gmail.com wrote: > Type C-x RET f utf- SPC, then an error occurs. > > Internal error: utf-7-imap doesn't match \`utf\(.*?\)-\([-_./:| *]\|\([[:alpha:]]\)[[:digit:]]*?\)- Thanks; fixed. commit 79abec2 Date: Wed Mar 1 16:53:08 2017 -0500 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 "*?". diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 8754f7f..fa3ad80 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