From: "Sven Bretfeld" <sven.bretfeld@gmx.ch>
To: help-gnu-emacs@gnu.org
Subject: Re: ucs-insert no longer working
Date: 16 Apr 2013 09:38:06 +0200 [thread overview]
Message-ID: <87a9ozsz6p.fsf@gmx.ch> (raw)
In-Reply-To: <87a9p0954r.fsf@turtle.gmx.de> (Sven Joachim's message of "Sun, 14 Apr 2013 23:25:24 +0200")
Sven Joachim <svenjoac@gmx.de> writes:
> 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
Hello
Strangely enough it was working for years. Also with Emacs 24. Only the
most recent update seemingly became intolerant to this mistake. Thank
you very much. Now its working again.
Sven
next prev parent reply other threads:[~2013-04-16 7:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.24120.1365972586.855.help-gnu-emacs@gnu.org>
2013-04-14 21:25 ` ucs-insert no longer working Sven Joachim
2013-04-16 7:38 ` Sven Bretfeld [this message]
2013-04-14 20:49 Sven Bretfeld
2013-04-14 22:05 ` Drew Adams
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=87a9ozsz6p.fsf@gmx.ch \
--to=sven.bretfeld@gmx.ch \
--cc=help-gnu-emacs@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.