Subject: 24.2; read-event does not read S-SPC on Mac OS X
From: Christopher Genovese <[email-masked]>
To: [email-masked]
Date: Mon, 11 Feb 2013 11:36:13 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

S-SPC is not being processed correctly when running Emacs -Q
(version 24.2 on Mac OS X 10.7.5 next step, installed via
homebrew --cocoa --srgb). Specifically, the shift modifier is being
dropped/ignored.  For example, doing

  (read-event)

followed by S-SPC returns 32, whereas with other modifiers of SPC
it does the correct thing. S-SPC does not appear to be being caught
and translated by any of the intervening translation maps
and the current-input-method is nil. Also, emacs 23.2 handles
S-SPC properly on the same machine, so the key sequence does not
appear to have been affected by the OS.

This is an issue for me because I use that sequence in several
modes, including icicles.

Thanks for your help.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/local/Cellar/emacs/24.2/share/emacs/24.2/etc/DEBUG.

In GNU Emacs 24.2.1 (x86_64-apple-darwin11.4.2, NS apple-appkit-1138.51)
 of 2013-02-08 on Christophers-MacBook-Pro.local
Windowing system distributor `Apple', version 10.3.1138
Configured using:
 `configure '--prefix=/usr/local/Cellar/emacs/24.2' '--without-dbus'
 '--enable-locallisppath=/usr/local/share/emacs/site-lisp'
 '--infodir=/usr/local/Cellar/emacs/24.2/share/info/emacs' '--with-ns'
 '--disable-ns-self-contained' 'CC=cc''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
s-: C-g : <backspace> ( r e a d - e v e n t ) C-a C-x
SPC C-g C-g <escape> C-x C-g C-h c e C-h c <escape>
C-x C-e C-j C-g C-p C-e C-h c C-j C-g C-j SPC C-p C-p
C-e C-j C-SPC C-p C-p C-e C-a C-o C-y C-j C-n C-e C-j
M-SPC C-p C-p C-e C-j SPC C-p C-p C-e C-j SPC C-h f
b <backspace> r e p o r <tab> - e <tab> m <tab> <return>
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:

Quit
e runs the command self-insert-command
C-M-x (translated from <escape> C-x) runs the command eval-defun
Quit
C-j runs the command eval-print-last-sexp
Quit
Mark set
Making completion list...
Type C-x 1 to delete the help window.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils help-mode easymenu view help-fns ispell
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process ns multi-tty emacs)