From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: .emacs poser Date: Tue, 17 Dec 2013 10:06:52 +0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1387249630 31490 80.91.229.3 (17 Dec 2013 03:07:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2013 03:07:10 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: "B. T. Raven" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 17 04:07:16 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 1Vsl07-00046S-Qv for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 04:07:15 +0100 Original-Received: from localhost ([::1]:59444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsl07-0008MB-C5 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Dec 2013 22:07:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vskzs-0008Lr-NH for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 22:07:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vskzl-0005X5-Kh for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 22:07:00 -0500 Original-Received: from mail-qe0-x229.google.com ([2607:f8b0:400d:c02::229]:62386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vskzl-0005X0-H2 for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 22:06:53 -0500 Original-Received: by mail-qe0-f41.google.com with SMTP id gh4so4686652qeb.14 for ; Mon, 16 Dec 2013 19:06:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=6LaDfz9yxKor3nmo62VHtaAIFx7EL5D55h5DlFmVPr0=; b=yvSIXbGtEWyMA4Docols9ScFRWb6tbJB82v0NCUb4+bedJ5Htqy5D1DO6pnV6OIuT0 82d6eKYMoABK+JHUPi8QYS9GPghhUEpNFx7RLX7S/UnJdMnYwAYMDiXOaBy8T1Id+IGd JFfEzOs43IXuRdhZKJcQXEbGdLJfXfZn0gXARX5jUbwX5Nmp/gm79+upraNMa8XYeU69 exDz83kI5VX+BZBzwOWl9ozxTaQwMR8BY/hV9jDeZO8TMAQmEFZk/v2R3glY/dA3uf/I AFMkcoviHUHcd2rzoJKMPA410wt3SoL5tlXD6OuYZ31EvIhcC8foqK/sbPGz/BPxZEGq jywA== X-Received: by 10.224.167.15 with SMTP id o15mr38738158qay.96.1387249613045; Mon, 16 Dec 2013 19:06:53 -0800 (PST) Original-Received: by 10.96.42.106 with HTTP; Mon, 16 Dec 2013 19:06:52 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: 5NoHqsNO-NqNTXDKQGIN0UbrSKc X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c02::229 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:95037 Archived-At: On Tue, Dec 17, 2013 at 7:01 AM, B. T. Raven wrote: > In my emacs I have these global-set-key forms: IMO you=E2=80=99re doing it wrong, by solving the general problem of enteri= ng special character for a specific case of Emacs. > ;;(global-set-key "\C-cM" (lambda () (interactive) (insert ?=CC=84=E2= =9C=A0))) > the glyph shown is the Maltese cross but any character after the ? fails > to work in the same way. What I see[1] is Maltese Cross and a Macron over the preceding character. That=E2=80=99s two code points, not one. You need to either remo= ve the macron, or treat the two characters as a string, enclosing it in quotes instead of prefixing with a question mark. [1]: I actually see the macron over the Maltese cross, but that=E2=80=99s d= ue to a bug in font rendering on my system. Diacritic marks are supposed to affect the preceding character, and in your message the macron code point appears between the question mark and the Maltese cross.