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: Wed, 18 Dec 2013 08:38:41 +0700 Message-ID: References: <3f66b92c-abdc-4a2b-bffe-9d695427c3d2@default> 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 1387330729 4566 80.91.229.3 (18 Dec 2013 01:38:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2013 01:38:49 +0000 (UTC) Cc: "B. T. Raven" , "help-gnu-emacs@gnu.org" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 18 02:38:55 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 1Vt66B-0003tp-7d for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Dec 2013 02:38:55 +0100 Original-Received: from localhost ([::1]:36539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt66A-0000RI-N0 for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 20:38:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt65z-0000R2-FZ for help-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:38:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vt65y-00005G-Jo for help-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:38:43 -0500 Original-Received: from mail-qe0-x22a.google.com ([2607:f8b0:400d:c02::22a]:51914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt65y-00005A-GY for help-gnu-emacs@gnu.org; Tue, 17 Dec 2013 20:38:42 -0500 Original-Received: by mail-qe0-f42.google.com with SMTP id b4so6043942qen.15 for ; Tue, 17 Dec 2013 17:38:42 -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=GSw+QWb53yS3g/KWEZNJEbDfPo+zkr25idzaNbRI1rA=; b=Brg+Xg7ICNivoLrYlSNL5Url7f4meW7z1Dt0QXBGXqwbiLoZ2/HLXnHF5GZRp9WiOh DS/WSJzMoAdu9L8igQYzK+JwmDHm4CK0qxdr4KwzDY14hzNpS3y9iuqiYXizLVpo9fUD K3P30dqfkGFYVjAWatm4qZ7oAefUFWus8zgtTtYiAijsNNidA5EQU6j6DWM+JZfogHzw JFMTecEFwX+d8SVAkTI2GDukSAwy4gE2Nl4FVAbibzpaTASQfGosFu1R//kdCIXWLCgK S4Np3TyK7gEIvqlTDQQ1ZCMPsGzYVwwo/7ldIMqBxkjGhbmmJXAoS3hT25fn92qy04GJ E/DQ== X-Received: by 10.224.72.74 with SMTP id l10mr49397292qaj.28.1387330722062; Tue, 17 Dec 2013 17:38:42 -0800 (PST) Original-Received: by 10.96.42.106 with HTTP; Tue, 17 Dec 2013 17:38:41 -0800 (PST) In-Reply-To: <3f66b92c-abdc-4a2b-bffe-9d695427c3d2@default> X-Google-Sender-Auth: Zw8QgsaC_mPp36jgZd7A4fA0HTg X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c02::22a 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:95071 Archived-At: On Tue, Dec 17, 2013 at 10:17 PM, Drew Adams wrote: >> IMO you=E2=80=99re doing it wrong, by solving the general problem of ent= ering >> special character for a specific case of Emacs. > > There is no wrong or right way here. Does your keyboard have a key > that inserts the character `2' (yes)? Is dedicating that key > sequence to inserting that one character wasteful or "doing it wrong"? No, because this works in the VTs, in all programs running in VTs, on all X displays, and in all programs running on X displays. > Binding a command that inserts a commonly used character to a key > can be quite handy, regardless of whether there is also a general > way to insert any character. Exactly. But I argue that if one wants a special character in Emacs, one will also want the same character in other programs, entered by the same means. Therefore, the place to set up that binding is the XKB map and the corresponding console map.