unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17565: 24.3.91; numpad inserts wrong digits
@ 2014-05-23 18:14 Josh Tilles
  2014-05-27 17:23 ` Josh Tilles
  0 siblings, 1 reply; 4+ messages in thread
From: Josh Tilles @ 2014-05-23 18:14 UTC (permalink / raw)
  To: 17565

Basically, *I* believe that I'm typing “1234” but Emacs inserts “7895”
into the buffer. This was not the case in Emacs 24.3; typing “1234”
results in “1234”.

I used the OS X application [Key
Codes](http://manytricks.com/keycodes/) to show more detail about the
actual keys I'm pressing:



Key Down
Characters: 1
Unicode: 49 / 0x31
Keys: #7
Key Code: 89 / 0x59
Modifiers: 2097408 / 0x200100

Key Down
Characters: 2
Unicode: 50 / 0x32
Keys: #8
Key Code: 91 / 0x5b
Modifiers: 2097408 / 0x200100

Key Down
Characters: 3
Unicode: 51 / 0x33
Keys: #9
Key Code: 92 / 0x5c
Modifiers: 2097408 / 0x200100

Key Down
Characters: 4
Unicode: 52 / 0x34
Keys: #4
Key Code: 86 / 0x56
Modifiers: 2097408 / 0x200100





In GNU Emacs 24.3.91.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2014-05-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1265
Configured using:
 `configure --host=x86_64-apple-darwin --build=i686-apple-darwin
 --with-ns'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  electric-indent-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:
<down-mouse-1> <mouse-1> C-x b <return> 1 2 3 <return>
1 2 3 <return> <kp-7> <kp-8> <kp-9> <return> <down-mouse-1>
<mouse-1> C-h k <kp-7> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> C-h k C-h l <kp-7> <kp-8> <kp-9> <kp-4> <kp-5>
<kp-6> <kp-1> <kp-2> <kp-3> C-h l <down-mouse-1> <mouse-1>
M-x * b u g * <tab> <tab> <backspace> <backspace> <backspace>
<backspace> r e p o r t - e m a c s - b u g <retur
n>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Type C-x 1 to delete the help window.
 [2 times]
Making completion list...
call-interactively: End of buffer

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 rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-fns help-mode easymenu time-date tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-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 nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
cocoa ns multi-tty emacs)

Memory information:
((conses 16 73608 6684)
 (symbols 48 17266 0)
 (miscs 40 100 270)
 (strings 32 10039 3632)
 (string-bytes 1 272468)
 (vectors 16 8928)
 (vector-slots 8 361323 14353)
 (floats 8 56 604)
 (intervals 56 316 25)
 (buffers 960 14))





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17565: 24.3.91; numpad inserts wrong digits
  2014-05-23 18:14 bug#17565: 24.3.91; numpad inserts wrong digits Josh Tilles
@ 2014-05-27 17:23 ` Josh Tilles
  2014-05-27 21:47   ` Juri Linkov
  2014-06-01 11:11   ` Jan D.
  0 siblings, 2 replies; 4+ messages in thread
From: Josh Tilles @ 2014-05-27 17:23 UTC (permalink / raw)
  To: 17565

When I had first created the ticket, I had only started Emacs with
--no-init-file. However, I just verified that the behavior still shows
up by starting Emacs with -Q.

I'm using a Kinesis Advantage Pro keyboard, and in case you're not
familiar with the model, an image is available here:
https://www.washington.edu/itconnect/wp-content/uploads/2013/06/kinesisadvantagepro.jpg

I am running Emacs 24.3 and 24.3.91 "side-by-side" by keeping the 24.3
Emacs.app in /Applications but keeping the 24.3.91 Emacs.app in
~/Applications (i.e., /Users/joshua.tilles/Applications/Emacs.app vs
/Applications/Emacs.app)

It might be relevant that I have an unusual keyboard layout: I've done
(most of) the customization using OS X's Keyboard Layouts, not by
using Kinesis's built-in remapping ability. The keyboard customization
file follows, abbreviated to only the relevant portions:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM
"file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<keyboard group="0" id="…" name="…" maxout="1">
  <layouts>…</layouts>
  <modifierMap id="modifiers" defaultIndex="0">…</modifierMap>
  <keyMapSet id="ANSI">
        <!-- keycodes can be found in HIToolbox/Events.h (prefixed
kVK_ANSI_) -->
        <!-- and
http://lists.apple.com/archives/carbon-dev/2009/Jan/msg00101.html -->
        <keyMap index="0">
          …
          <!-- numpad -->
          <key code="71"  output="&#x1B;"/>             <!-- Num Lock
         -->
          <key code="81"  output="/"/>                  <!-- Num =
                 -->
          <key code="75"  output="*"/>                  <!-- Num /
                 -->
          <key code="67"  output="-"/>                  <!-- Num *
                 -->
          <key code="89"  output="1"/>                  <!-- Num 7
                 -->
          <key code="91"  output="2"/>                  <!-- Num 8
                 -->
          <key code="92"  output="3"/>                  <!-- Num 9
                 -->
          <key code="78"  output="+"/>                  <!-- Num -
                 -->
          <key code="86"  output="4"/>                  <!-- Num 4
                 -->
          <key code="87"  output="5"/>                  <!-- Num 5
                 -->
          <key code="88"  output="6"/>                  <!-- Num 6
                 -->
          <key code="69"  output="+"/>                  <!-- Num +
                 -->
          <key code="83"  output="7"/>                  <!-- Num 1
                 -->
          <key code="84"  output="8"/>                  <!-- Num 2
                 -->
          <key code="85"  output="9"/>                  <!-- Num 3
                 -->
          <key code="76"  output="&#x03;"/>             <!-- Enter
                 -->
          <key code="82"  output="0"/>                  <!-- Num 0
                 -->
          <key code="65"  output="."/>                  <!-- Decimal
Sep.       -->
         …
       </keyMap>
  </keyMapSet>
  …
  <actions>…<actions>
  <terminators>…</terminators>
</keyboard>





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17565: 24.3.91; numpad inserts wrong digits
  2014-05-27 17:23 ` Josh Tilles
@ 2014-05-27 21:47   ` Juri Linkov
  2014-06-01 11:11   ` Jan D.
  1 sibling, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2014-05-27 21:47 UTC (permalink / raw)
  To: Josh Tilles; +Cc: 17565

> It might be relevant that I have an unusual keyboard layout: I've done
> (most of) the customization using OS X's Keyboard Layouts, not by
> using Kinesis's built-in remapping ability. The keyboard customization
> file follows, abbreviated to only the relevant portions:

Does this help you?

(define-key function-key-map [kp-1] [?7])
(define-key function-key-map [kp-2] [?8])
(define-key function-key-map [kp-3] [?9])
(define-key function-key-map [kp-7] [?1])
(define-key function-key-map [kp-8] [?2])
(define-key function-key-map [kp-9] [?3])





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17565: 24.3.91; numpad inserts wrong digits
  2014-05-27 17:23 ` Josh Tilles
  2014-05-27 21:47   ` Juri Linkov
@ 2014-06-01 11:11   ` Jan D.
  1 sibling, 0 replies; 4+ messages in thread
From: Jan D. @ 2014-06-01 11:11 UTC (permalink / raw)
  To: Josh Tilles, 17565

Hello.

There is nothing we can do.  You have to debug it yourself, the relevant 
code is in keyDown in nsterm.m.

	Jan D.

Josh Tilles skrev 2014-05-27 19:23:
> When I had first created the ticket, I had only started Emacs with
> --no-init-file. However, I just verified that the behavior still shows
> up by starting Emacs with -Q.
>
> I'm using a Kinesis Advantage Pro keyboard, and in case you're not
> familiar with the model, an image is available here:
> https://www.washington.edu/itconnect/wp-content/uploads/2013/06/kinesisadvantagepro.jpg
>
> I am running Emacs 24.3 and 24.3.91 "side-by-side" by keeping the 24.3
> Emacs.app in /Applications but keeping the 24.3.91 Emacs.app in
> ~/Applications (i.e., /Users/joshua.tilles/Applications/Emacs.app vs
> /Applications/Emacs.app)
>
> It might be relevant that I have an unusual keyboard layout: I've done
> (most of) the customization using OS X's Keyboard Layouts, not by
> using Kinesis's built-in remapping ability. The keyboard customization
> file follows, abbreviated to only the relevant portions:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE keyboard SYSTEM
> "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
> <keyboard group="0" id="…" name="…" maxout="1">
>    <layouts>…</layouts>
>    <modifierMap id="modifiers" defaultIndex="0">…</modifierMap>
>    <keyMapSet id="ANSI">
>          <!-- keycodes can be found in HIToolbox/Events.h (prefixed
> kVK_ANSI_) -->
>          <!-- and
> http://lists.apple.com/archives/carbon-dev/2009/Jan/msg00101.html -->
>          <keyMap index="0">
>            …
>            <!-- numpad -->
>            <key code="71"  output="&#x1B;"/>             <!-- Num Lock
>           -->
>            <key code="81"  output="/"/>                  <!-- Num =
>                   -->
>            <key code="75"  output="*"/>                  <!-- Num /
>                   -->
>            <key code="67"  output="-"/>                  <!-- Num *
>                   -->
>            <key code="89"  output="1"/>                  <!-- Num 7
>                   -->
>            <key code="91"  output="2"/>                  <!-- Num 8
>                   -->
>            <key code="92"  output="3"/>                  <!-- Num 9
>                   -->
>            <key code="78"  output="+"/>                  <!-- Num -
>                   -->
>            <key code="86"  output="4"/>                  <!-- Num 4
>                   -->
>            <key code="87"  output="5"/>                  <!-- Num 5
>                   -->
>            <key code="88"  output="6"/>                  <!-- Num 6
>                   -->
>            <key code="69"  output="+"/>                  <!-- Num +
>                   -->
>            <key code="83"  output="7"/>                  <!-- Num 1
>                   -->
>            <key code="84"  output="8"/>                  <!-- Num 2
>                   -->
>            <key code="85"  output="9"/>                  <!-- Num 3
>                   -->
>            <key code="76"  output="&#x03;"/>             <!-- Enter
>                   -->
>            <key code="82"  output="0"/>                  <!-- Num 0
>                   -->
>            <key code="65"  output="."/>                  <!-- Decimal
> Sep.       -->
>           …
>         </keyMap>
>    </keyMapSet>
>    …
>    <actions>…<actions>
>    <terminators>…</terminators>
> </keyboard>
>
>






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-01 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-23 18:14 bug#17565: 24.3.91; numpad inserts wrong digits Josh Tilles
2014-05-27 17:23 ` Josh Tilles
2014-05-27 21:47   ` Juri Linkov
2014-06-01 11:11   ` Jan D.

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).