all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Cc: help-gnu-emacs@gnu.org, kai@emptydomain.de,
	bug-gnu-emacs@gnu.org, emacs-devel@gnu.org
Subject: RE: read-key-sequence(-vector) on Shift left/right gives[left]/[right], not [S-left]/[S-right] ?
Date: Tue, 7 Sep 2004 17:47:32 -0700	[thread overview]
Message-ID: <FDELKNEBLPKKDCEBEJCBIEEHCHAA.drew.adams@oracle.com> (raw)
In-Reply-To: <E1C4qDt-0004H4-6U@fencepost.gnu.org>

Mea culpa.

It is documented in the doc strings, but I was misreading them. And I'm
happy that there is an option to these functions that cancels the Shift-drop
behavior.

I do think it would be clearer to specifically say that the Shift modifier
is dropped (unless DONT-DOWNCASE-LAST is non-nil), instead of saying that
"downcasing" is done. I may not be the only person who misreads this,
thinking that downcasing involves letters only.

That is, the notion of substituting lowercase for uppercase is different (to
me anyway) from the notion of dropping the Shift modifier. I don't think of
[S-left] as being uppercase and [left] as being lowercase. In fact, I don't
think those terms properly apply here: case is a property of letters, not
key sequences or keyboard keys.

The confusion is all the more likely given the only info I could find on
this in the Emacs Lisp manual:

 "If an input character is an upper-case letter and has no key binding,
  but its lower-case equivalent has one, then `read-key-sequence'
  converts the character to lower case."

It is not a matter of downcasing "upper-case letters".

Thanks,

  Drew

-----Original Message-----
From: Richard Stallman [mailto:rms@gnu.org]

    2) Shouldn't it at least be documented in the doc strings of
    read-key-sequence and read-key-sequence-vector?

It already is:

The third (optional) arg DONT-DOWNCASE-LAST, if non-nil, means do not
convert the last event to lower case.  (Normally any upper case event
is converted to lower case if the original event is undefined and the lower
case equivalent is defined.)

  reply	other threads:[~2004-09-08  0:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-07  0:02 read-key-sequence(-vector) on Shift left/right gives [left]/[right], not [S-left]/[S-right] ? Drew Adams
2004-09-07 11:55 ` Kai Grossjohann
2004-09-07 14:32   ` read-key-sequence(-vector) on Shift left/right gives[left]/[right], " Drew Adams
2004-09-07 14:47     ` Stefan
2004-09-07 15:47       ` Drew Adams
2004-09-08  0:22     ` Richard Stallman
2004-09-08  0:47       ` Drew Adams [this message]
     [not found] <mailman.1740.1094515688.1998.help-gnu-emacs@gnu.org>
2004-09-07  1:21 ` read-key-sequence(-vector) on Shift left/right gives [left]/[right], " Katsumi Yamaoka
  -- strict thread matches above, loose matches on Subject: below --
2004-09-08 16:08 read-key-sequence(-vector) on Shift left/right gives[left]/[right], not [S-left]/[S-right] Charles_Davis
2004-09-09  8:34 ` Kai Grossjohann
     [not found] <mailman.1987.1094660096.1998.help-gnu-emacs@gnu.org>
2004-09-08 20:38 ` Alan Mackenzie
2004-09-09  3:02 ` Luc Teirlinck
2004-09-09 11:39 Charles_Davis
2004-09-09 12:54 ` Kai Grossjohann
     [not found] ` <mailman.2142.1094734877.1998.help-gnu-emacs@gnu.org>
2004-09-09 18:43   ` Thomas Dickey
2004-09-26 11:51     ` Kai Grossjohann

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=FDELKNEBLPKKDCEBEJCBIEEHCHAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kai@emptydomain.de \
    /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.