all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: 23670-done@debbugs.gnu.org
Subject: bug#23670: 24.5; error when complete coding system
Date: Wed, 01 Mar 2017 16:54:32 -0500	[thread overview]
Message-ID: <5wpoi0oe7b.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87fusxkvdf.fsf@gmail.com> (ynyaaa@gmail.com's message of "Wed, 01 Jun 2016 20:21:16 +0900")

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





      parent reply	other threads:[~2017-03-01 21:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-01 11:21 bug#23670: 24.5; error when complete coding system ynyaaa
2016-06-04 16:01 ` Eli Zaretskii
2017-03-01 21:54 ` Glenn Morris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5wpoi0oe7b.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=23670-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.