all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Andreas Roehler <andreas.roehler@online.de>
Cc: Charles Muller <cmuller-lst@JJ.EM-NET.NE.JP>,
	TEI-L@LISTSERV.BROWN.EDU, emacs-devel@gnu.org,
	XEmacs Beta Discussion <xemacs-beta@xemacs.org>
Subject: Re: editor for large xml files?
Date: Wed, 17 Feb 2010 10:20:08 +0100	[thread overview]
Message-ID: <87fx50fcc7.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <4B7BA887.4000100@online.de> (Andreas Roehler's message of "Wed,  17 Feb 2010 09:27:51 +0100")

Andreas Roehler <andreas.roehler@online.de> writes:

Hi Andreas,

> As this style
>
> (global-set-key [(control kp-divide)] 'My-Command)
>
> or
>
> (global-set-key [(control x)(c)] 'My-Other-Command)
>
> is understood by all Emacsen, suggest to keep that, declaring the
> other ones obsolete.

Was there any discussion of declaring it obsolete?

IMO, the recommended style for making keybindings should be `kbd', which
is available in Emacs, XEmacs, and SXEmacs.

So your 2 definitions would become:

  (global-set-key (kbd "<C-kp-divide>") 'My-Command)
  (global-set-key (kbd "C-x c")         'My-Other-Command)

That's quite easy to read and write (you can simply insert the string
describe-key outputs as argument to `kbd'), and it hides how an
implementation represents the key sequences internally.

Bye,
Tassilo




  parent reply	other threads:[~2010-02-17  9:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2AADFE343D601545A6F8F2B49E144A37EDE0118C4A@STAWINCOEXMAIL1.staff.vuw.ac.nz>
     [not found] ` <4B5DEEF6.6050006@uleth.ca>
     [not found]   ` <4B5E44A6.1060908@o2.pl>
     [not found]     ` <4B5EFD50.6050802@durusau.net>
     [not found]       ` <4B5F49D9.5000107@vuw.ac.nz>
     [not found]         ` <2BBFBDCDF4296C4482D60C88E47A0707046C841B56@PITT-EXCH-14.univ.pitt.edu>
     [not found]           ` <4B7748F4.4050109@mars.ucc.ie>
     [not found]             ` <2AADFE343D601545A6F8F2B49E144A37EDE0118CAF@STAWINCOEXMAIL1.staff.vuw.ac.nz>
     [not found]               ` <4B79AD6C.2090203@mars.ucc.ie>
     [not found]                 ` <4B79B0EA.3020503@virginia.edu>
     [not found]                   ` <20100216015847.GW9945@proliant.indica-et-buddhica.org>
     [not found]                     ` <4B7A4309.6040101@oxygenxml.com>
     [not found]                       ` <4B7B3562.8030604@jj.em-net.ne.jp>
2010-02-17  8:27                         ` editor for large xml files? Andreas Roehler
2010-02-17  8:27                         ` Andreas Roehler
     [not found]                         ` <4B7BA887.4000100@online.de>
2010-02-17  9:20                           ` Tassilo Horn [this message]
2010-02-17  9:53                             ` Andreas Roehler
2010-02-18  3:29                             ` (kbd) for key bindings (was: editor for large xml files?) Steve Revilak
2010-02-18  7:18                               ` (kbd) for key bindings Miles Bader
2010-02-18 10:17                                 ` Stephen J. Turnbull
2010-02-18 11:18                                   ` Andreas Roehler

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

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

  git send-email \
    --in-reply-to=87fx50fcc7.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=TEI-L@LISTSERV.BROWN.EDU \
    --cc=andreas.roehler@online.de \
    --cc=cmuller-lst@JJ.EM-NET.NE.JP \
    --cc=emacs-devel@gnu.org \
    --cc=xemacs-beta@xemacs.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.