bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#4325: 23.1; kp-0 in ispell


From: Per Starbäck
Subject: bug#4325: 23.1; kp-0 in ispell
Date: Thu, 3 Sep 2009 11:02:50 +0200

In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.10.4)

emacs -Q
t e h M-x ispell-buffer RET kp-0

Expected result: Changing "teh" into "the" (like I had pressed "0" instead)
Actual result: Spell-checking suspended; use C-u M-$ to resume

Suggested fix:
$ diff -u ispell.el.~1~ ispell.el
--- ispell.el.~1~       2009-06-24 19:54:28.000000000 +0200
+++ ispell.el   2009-09-03 10:51:58.000000000 +0200
@@ -1943,6 +1943,9 @@
                    ;; ignore mouse events occuring in the same frame.
                    (while (and input-valid (not (characterp char)))
                      (setq char (read-event))
+                     ;; Convert kp-0 to ?0, etc.
+                     (when (symbolp char)
+                       (setq char (get char 'ascii-character)))
                      (setq input-valid
                            (or (characterp char)
                                (and (mouse-event-p char)

2009-09-03  Per Starbäck  <per@starback.se>

        * textmodes/ispell.el (ispell-command-loop): Accept keypad digits
        as alternative to ordinary digits.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]