From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Per =?UTF-8?Q?Starb=C3=A4ck?= Newsgroups: gmane.emacs.bugs Subject: bug#4325: 23.1; kp-0 in ispell Date: Thu, 3 Sep 2009 11:02:50 +0200 Message-ID: <912155b0909030202ra3c56b8ya2b37cef57302984@mail.gmail.com> Reply-To: Per =?UTF-8?Q?Starb=C3=A4ck?= , 4325@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251970045 3302 80.91.229.12 (3 Sep 2009 09:27:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 09:27:25 +0000 (UTC) To: bug-gnu-emacs@gnu.org, ispell-el-bugs@itcorp.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 03 11:27:18 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mj8b6-0001gu-8T for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 11:27:17 +0200 Original-Received: from localhost ([127.0.0.1]:41973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mj8b5-0007nY-5D for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 05:27:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mj8av-0007ju-M5 for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2009 05:27:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mj8aq-0007iG-8z for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2009 05:27:04 -0400 Original-Received: from [199.232.76.173] (port=41590 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mj8aq-0007i0-3h for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2009 05:27:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56079) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mj8ap-000299-Ke for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2009 05:26:59 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n839Qvnu006509; Thu, 3 Sep 2009 02:26:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n839A5Fi003597; Thu, 3 Sep 2009 02:10:05 -0700 Resent-Date: Thu, 3 Sep 2009 02:10:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Per =?UTF-8?Q?Starb=C3=A4ck?= Original-Sender: per.starback@gmail.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 03 Sep 2009 09:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4325 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12519685801641 (code B ref -1); Thu, 03 Sep 2009 09:10:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Sep 2009 09:03:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8392wei001637 for ; Thu, 3 Sep 2009 02:02:59 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mj8DZ-0004iV-V6 for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2009 05:02:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mj8DV-0004ht-AB for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2009 05:02:57 -0400 Original-Received: from [199.232.76.173] (port=60779 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mj8DV-0004he-41 for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2009 05:02:53 -0400 Original-Received: from mail-fx0-f226.google.com ([209.85.220.226]:50381) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mj8DU-0005V3-GW for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2009 05:02:52 -0400 Original-Received: by fxm26 with SMTP id 26so1634307fxm.42 for ; Thu, 03 Sep 2009 02:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=G10NiDJFqA2QQcEBoBfxtVO6S1MFk305+wCf19wexe0=; b=HrJa/bH1AIRytTX4W8mRtybpAKzjL0A9Mi0RKSR6Tk7sT21M+dowyTGdTxFEaZ4gYH ARW4hDmnDt0flgRJ7q8rtx4rn7NxO1GuuFXTuo7tlVzwYXG+uuSFHTfMSgDpUvhpBrAT MbmmiQ2NAeNGrAVDP+d/DRttT4Ox7702O5XwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=fCocX8u3fQC1ujwBJIK4Xv75xsY1e48eiVkJ2zqe6X4eXzFssgf29PjqGq9rsepxzn XCZXEuwXUHyiGi65L9140RQ/ETOqpUYZVnaOKblPHf+h1pbz7falxpENLjOxnTwjuKRt i1YxN6h8mO9t5l1cvU2D26muvTdMcjeO4cYHs= Original-Received: by 10.223.127.195 with SMTP id h3mr3896257fas.57.1251968570642; Thu, 03 Sep 2009 02:02:50 -0700 (PDT) X-Google-Sender-Auth: aab1b652665a2a35 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 03 Sep 2009 05:27:04 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30762 Archived-At: 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=E4ck * textmodes/ispell.el (ispell-command-loop): Accept keypad digits as alternative to ordinary digits.