From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.help Subject: Re: confusion with defining keys Date: Thu, 12 Jun 2014 07:40:39 +0200 Organization: my virtual residence Message-ID: <87ha3q1y94.fsf@yun.yagibdah.de> References: <8761k8hw8s.fsf@yun.yagibdah.de> 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 1402553304 24655 80.91.229.3 (12 Jun 2014 06:08:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2014 06:08:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 12 08:08:18 2014 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 1WuyBN-0006PP-Tx for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 08:08:18 +0200 Original-Received: from localhost ([::1]:51325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuyBN-0007HK-6B for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 02:08:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuyB8-0007H1-Hp for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 02:08:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuyB1-0006a7-Lg for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 02:08:02 -0400 Original-Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:49476 helo=jarl.yagibdah.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuyB1-0006ZC-DY for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 02:07:55 -0400 Original-Received: from yun.yagibdah.de ([192.168.3.20]) by jarl.yagibdah.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WuyAy-000115-6l for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 08:07:52 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1WuyAy-0006pn-2F for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 08:07:52 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 11 Jun 2014 07:53:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 194.42.186.216 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:98166 Archived-At: Stefan Monnier writes: >> (global-set-key "\C-=C3=A4" 'undo) > > This should ideally signal an error, because "\C-=C3=A4" is an invalid st= ring > (a string can only contains chars and C-=C3=A4 is not a char but > a "char combined with a modifier"). For historical reasons this doesn't > signal an error, but it doesn't do what you want. Use either (kbd > "C-=C3=A4") or [?\C-=C3=A4]. > In general, I recommend never to use the plain "..." notation for key > sequences: it made sense back in the Emacs-18 days when it was > introduced, but it's been a "legacy" since Emacs-19. Hm, I think I tried (kbd ""), which didn't work. How is one supposed to know what to use? I'd never think of [?\C-=C3=A4] ... --=20 Knowledge is volatile and fluid. Software is power.