From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.help Subject: Re: ucs-insert no longer working Date: Sun, 14 Apr 2013 23:25:24 +0200 Organization: Gnus News User Services Message-ID: <87a9p0954r.fsf@turtle.gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366039206 14856 80.91.229.3 (15 Apr 2013 15:20:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 15:20:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 15 17:20:10 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URlCM-0006kT-02 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 17:20:02 +0200 Original-Received: from localhost ([::1]:54916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlCL-0006Yz-D0 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 11:20:01 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!quimby.gnus.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: p4fc60b97.dip0.t-ipconnect.de Original-X-Trace: quimby.gnus.org 1365974721 19429 79.198.11.151 (14 Apr 2013 21:25:21 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sun, 14 Apr 2013 21:25:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:Vms6cDLSzPhXwQvmOTNyjtZzbF8= Original-Xref: usenet.stanford.edu gnu.emacs.help:197894 X-Mailman-Approved-At: Mon, 15 Apr 2013 11:18:18 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90173 Archived-At: 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