all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: "Aaron S. Hawley" <aaron.s.hawley@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Emacs manual: correct @code to @kbd
Date: Wed, 10 Jun 2009 11:39:34 +0900	[thread overview]
Message-ID: <87iqj4errt.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <aea22dab0906090510y771b5148o23a9529a2f23e5b@mail.gmail.com>

Aaron S. Hawley writes:
 > On Mon, Jun 8, 2009 at 11:01 PM, Eli Zaretskii<eliz@gnu.org> wrote:
 > >
 > > However, some of your corrections are wrong.  For example, this:
 > >
 > >> --- doc/emacs/custom.texi     4 Jun 2009 03:13:28 -0000       1.22
 > >> +++ doc/emacs/custom.texi     8 Jun 2009 18:49:57 -0000
 > >> @@ -1706,7 +1706,7 @@
 > >>  @end example
 > >>
 > >>    When the key sequence includes function keys or mouse button events,
 > >> -or non-@acronym{ASCII} characters such as @code{C-=} or @code{H-a},
 > >> +or non-@acronym{ASCII} characters such as @kbd{C-=} or @kbd{H-a},
 > >
 > > Since this talks about _characters_, not keystrokes, @kdb is
 > > inappropriate here, I think.
 > 
 > Maybe, but the @code isn't appropriate since neither characters nor
 > "key sequence" are source code.

This is the old discussion (cf. http://www.jwz.org/doc/lemacs.html,
ignore the politics and focus on the discussion of how the Lemacs
event model broke "calc" between Jamie and Dave Gillespie) of whether
input characters are characters or events.  Emacs takes the position
that they are characters and encodes non-character events differently.

My personal take is that @kbd means "console input", and the spelling
is a legacy of the time when console input was restricted to typing on
the keyboard.  Cf. the usage of "key sequence" above.  @kbd then may
be used to mark any literal keystroke (including chords).  There's a
special convention that keystrokes that resolve to characters may be
replaced by the characters in order to make documentation shorter and
more readable.

So I like @kbd above.  The word "characters" is wrong.  Actually it's
probably an abbreviation of "keyboard input that corresponds to
non-ASCII characters", but that's still wrong in a Unicode world,
`C-=' and `H-a' are not characters.  (Granted, in Emacs Lisp
characters and integers are the same type in the implementation, but
you do have `char-int-p'.)





  reply	other threads:[~2009-06-10  2:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-08 18:58 Emacs manual: correct @code to @kbd Aaron S. Hawley
2009-06-09  3:01 ` Eli Zaretskii
2009-06-09 12:10   ` Aaron S. Hawley
2009-06-10  2:39     ` Stephen J. Turnbull [this message]
2009-06-10  2:33   ` Richard Stallman
2009-06-10 22:03   ` Stefan Monnier

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=87iqj4errt.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=aaron.s.hawley@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.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.