From: "Per Starbäck" <per@starback.se>
To: bug-gnu-emacs@gnu.org, ispell-el-bugs@itcorp.com
Subject: bug#4325: 23.1; kp-0 in ispell
Date: Thu, 3 Sep 2009 11:02:50 +0200 [thread overview]
Message-ID: <912155b0909030202ra3c56b8ya2b37cef57302984@mail.gmail.com> (raw)
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.
next reply other threads:[~2009-09-03 9:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87d45umvk5.fsf@cyd.mit.edu>
2009-09-03 9:02 ` Per Starbäck [this message]
2009-09-03 9:35 ` bug#4325: 23.1; kp-0 in ispell Andreas Schwab
2009-09-03 9:43 ` Per Starbäck
2009-09-03 13:58 ` Stefan Monnier
2009-09-13 20:40 ` bug#4325: marked as done (23.1; kp-0 in ispell) Emacs bug Tracking System
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=912155b0909030202ra3c56b8ya2b37cef57302984@mail.gmail.com \
--to=per@starback.se \
--cc=4325@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=ispell-el-bugs@itcorp.com \
/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.