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#15166: 24.3.50; Isearch for an octal code Date: Sat, 24 Aug 2013 01:48:41 +0300 Organization: JURTA Message-ID: <87vc2wowfq.fsf@mail.jurta.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377298510 16247 80.91.229.3 (23 Aug 2013 22:55:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2013 22:55:10 +0000 (UTC) Cc: 15166@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 24 00:55:10 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 1VD0G4-0008NB-CI for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Aug 2013 00:55:08 +0200 Original-Received: from localhost ([::1]:39005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VD0G4-0001oB-3M for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Aug 2013 18:55:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VD0G1-0001mp-04 for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2013 18:55:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VD0Fz-0006q2-FA for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2013 18:55:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VD0Fz-0006p5-Bs for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2013 18:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VD0Fy-0002yt-EZ for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2013 18:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Aug 2013 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15166 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15166-submit@debbugs.gnu.org id=B15166.137729846611413 (code B ref 15166); Fri, 23 Aug 2013 22:55:02 +0000 Original-Received: (at 15166) by debbugs.gnu.org; 23 Aug 2013 22:54:26 +0000 Original-Received: from localhost ([127.0.0.1]:51035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VD0FN-0002y0-HJ for submit@debbugs.gnu.org; Fri, 23 Aug 2013 18:54:26 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:40951 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VD0FK-0002xo-05 for 15166@debbugs.gnu.org; Fri, 23 Aug 2013 18:54:22 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 17F1E258B9E935; Fri, 23 Aug 2013 15:54:19 -0700 (PDT) In-Reply-To: (Dani Moncayo's message of "Fri, 23 Aug 2013 13:23:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-Spam-Score: 0.0 (/) 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:77670 Archived-At: > Recipe from "emacs -Q": > C-q 2 0 0 RET M-< C-s C-q 2 0 0 RET > > I observe that Isearch fails; it's unable to find the character with > octal code `200'. This is due to this special casing in `isearch-quote-char': (and enable-multibyte-characters (>= char ?\200) (<= char ?\377) (setq char (unibyte-char-to-multibyte char))) But in `quoted-insert' the same code is commented out now. So `isearch-quote-char' should be synced with `quoted-insert' by adding the same comment from `quoted-insert': === modified file 'lisp/isearch.el' --- lisp/isearch.el 2013-07-05 20:15:32 +0000 +++ lisp/isearch.el 2013-08-23 22:42:25 +0000 @@ -2730,10 +2748,14 @@ (defun isearch-quote-char (&optional cou (if (subregexp-context-p isearch-string (length isearch-string)) (isearch-process-search-string "[ ]" " ") (isearch-process-search-char char count)) - (and enable-multibyte-characters - (>= char ?\200) - (<= char ?\377) - (setq char (unibyte-char-to-multibyte char))) + ;; This used to assume character codes 0240 - 0377 stand for + ;; characters in some single-byte character set, and converted them + ;; to Emacs characters. But in 23.1 this feature is deprecated + ;; in favor of inserting the corresponding Unicode characters. + ;; (and enable-multibyte-characters + ;; (>= char ?\200) + ;; (<= char ?\377) + ;; (setq char (unibyte-char-to-multibyte char))) (isearch-process-search-char char count)))) (defun isearch-printing-char (&optional char count)