bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10857: ucs-insert deals inconsistently with errors


From: Andreas Schwab
Subject: bug#10857: ucs-insert deals inconsistently with errors
Date: Wed, 22 Feb 2012 10:03:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Juri Linkov <juri@jurta.org> writes:

> This should be fixed by this patch:
>
> === modified file 'lisp/international/mule-cmds.el'
> --- lisp/international/mule-cmds.el   2012-02-10 19:35:28 +0000
> +++ lisp/international/mule-cmds.el   2012-02-22 00:07:34 +0000
> @@ -2949,7 +2949,7 @@ (defun read-char-by-name (prompt)
>                         '(metadata (category . unicode-name))
>                       (complete-with-action action (ucs-names) string 
> pred))))))
>      (cond
> -     ((string-match-p "^[0-9a-fA-F]+$" input)
> +     ((string-match-p "\\`[0-9a-fA-F]+\\'" input)
>        (string-to-number input 16))
>       ((string-match-p "^#" input)

This should also use \`.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]