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

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

Re: ucs-insert no longer working


From: Sven Joachim
Subject: Re: ucs-insert no longer working
Date: Sun, 14 Apr 2013 23:25:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

On 2013-04-14 22:49 +0200, Sven Bretfeld wrote:

> After today's update to Emacs 24.3.1 on Ubuntu 12.10 the following is no
> longer working:
>
> (defun insert-lang-a ()
> (interactive)
> (ucs-insert "0101"))
> (global-set-key "\M-aa" 'insert-lang-a)
>
> Debug-on-error gives:
>
> Debugger entered--Lisp error: (wrong-type-argument characterp "0101")
>   insert-char("0101")
>   insert-lang-a()
>   call-interactively(insert-lang-a nil nil)
>
> Replacing "ucs-insert" by "insert-char" doesn't help.

Obviously not, since the latter is just an alias to the former in Emacs
24.3.

> Calling ucs-insert
> manually with M-x works however. What strange bug is that?

I don't know if your syntax was ever supposed to work, but you should
use (ucs-insert #x0101) instead to make clear that it's a hexadecimal
code point you're inserting.

Cheers,
       Sven


reply via email to

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