From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#15200: isearch-other-meta-char and shift Date: Tue, 27 Aug 2013 19:28:22 +0300 Organization: JURTA Message-ID: <8761urkssh.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377621022 4796 80.91.229.3 (27 Aug 2013 16:30:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Aug 2013 16:30:22 +0000 (UTC) To: 15200@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 27 18:30:23 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VEM9v-0005zC-EM for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2013 18:30:23 +0200 Original-Received: from localhost ([::1]:57464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEM9u-0007wK-VE for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2013 12:30:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEM9k-0007v4-89 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:30:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEM9b-0006Kv-S3 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:30:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEM9b-0006JY-OU for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VEM9a-0002Tv-KQ for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2013 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15200 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13776209799484 (code B ref -1); Tue, 27 Aug 2013 16:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2013 16:29:39 +0000 Original-Received: from localhost ([127.0.0.1]:59440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VEM9C-0002St-N7 for submit@debbugs.gnu.org; Tue, 27 Aug 2013 12:29:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34210) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VEM99-0002Sj-55 for submit@debbugs.gnu.org; Tue, 27 Aug 2013 12:29:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEM90-000668-7M for submit@debbugs.gnu.org; Tue, 27 Aug 2013 12:29:34 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEM90-000664-4H for submit@debbugs.gnu.org; Tue, 27 Aug 2013 12:29:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEM8u-0007oj-2y for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:29:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEM8o-00064V-3Q for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:29:19 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:46153 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEM8n-00064J-Tj for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:29:14 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id A53E6258B9E935 for ; Tue, 27 Aug 2013 09:29:11 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77772 Archived-At: There is a problem in `isearch-other-meta-char' with shifted characters. Typing exits Isearch instead of adding 0 to the search string. A possible fix is to handle shifted kp-numbers like shifted control characters are handled in the second `cond' branch of `isearch-other-meta-char': === modified file 'lisp/isearch.el' --- lisp/isearch.el 2013-07-05 20:15:32 +0000 +++ lisp/isearch.el 2013-08-27 16:27:45 +0000 @@ -2550,6 +2606,16 @@ (defun isearch-other-meta-char (&optiona (lookup-key local-function-key-map key))) (while keylist (setq key (car keylist)) + ;; Handle an undefined shifted printing character + ;; by downshifting it if that makes it printing. + ;; (As read-key-sequence would normally do, + ;; if we didn't have a default definition.) + (if (and (integerp key) + (memq 'shift (event-modifiers key)) + (>= key (+ ?\s (- ?\S-a ?a))) + (/= key (+ 127 (- ?\S-a ?a))) + (< key (+ 256 (- ?\S-a ?a)))) + (setq key (- key (- ?\S-a ?a)))) ;; If KEY is a printing char, we handle it here ;; directly to avoid the input method and keyboard ;; coding system translating it.