unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sven Joachim <svenjoac@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: ucs-insert no longer working
Date: Sun, 14 Apr 2013 23:25:24 +0200	[thread overview]
Message-ID: <87a9p0954r.fsf@turtle.gmx.de> (raw)
In-Reply-To: mailman.24120.1365972586.855.help-gnu-emacs@gnu.org

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	other threads:[~2013-04-14 21:25 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 ` Sven Joachim [this message]
2013-04-16  7:38   ` ucs-insert no longer working Sven Bretfeld
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87a9p0954r.fsf@turtle.gmx.de \
    --to=svenjoac@gmx.de \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).