Subject: bug#10857: ucs-insert deals inconsistently with errors
Juri Linkov <juri@xxxxxxxxx> 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@xxxxxxxxxxxxxx
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."



(C)2011 mailinglist-archive.com