From unknown Sat Jun 21 10:27:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15166 <15166@debbugs.gnu.org> To: bug#15166 <15166@debbugs.gnu.org> Subject: Status: 24.3.50; Isearch for an octal code Reply-To: bug#15166 <15166@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:27:24 +0000 retitle 15166 24.3.50; Isearch for an octal code reassign 15166 emacs submitter 15166 Dani Moncayo severity 15166 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 07:23:22 2013 Received: (at submit) by debbugs.gnu.org; 23 Aug 2013 11:23:22 +0000 Received: from localhost ([127.0.0.1]:49650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCpSb-0007iN-49 for submit@debbugs.gnu.org; Fri, 23 Aug 2013 07:23:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44065) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCpSX-0007iD-1A for submit@debbugs.gnu.org; Fri, 23 Aug 2013 07:23:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCpSV-0000fV-Sm for submit@debbugs.gnu.org; Fri, 23 Aug 2013 07:23:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCpSV-0000fC-Oj for submit@debbugs.gnu.org; Fri, 23 Aug 2013 07:23:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCpSU-0007Mu-8i for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2013 07:23:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCpSR-0000dB-Hp for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2013 07:23:14 -0400 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:33375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCpSR-0000d2-9x for bug-gnu-emacs@gnu.org; Fri, 23 Aug 2013 07:23:11 -0400 Received: by mail-lb0-f178.google.com with SMTP id z5so368342lbh.23 for ; Fri, 23 Aug 2013 04:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Leznr8lwWT5WTWvQiNw6ohVfM2/0YdB4ykmVKZjtw/c=; b=MiFie5xoYgkgBZO85hSDatsCVAoSCrUZCkLzMf3SDL5oW+A6yQf/QKBbRGN+PFKVvu UAEgaCXSOiO5MDFLvdg6cg3rSjuiLwQ9W2pBbyTxteZxFNGdgkYYNMxagT3LVB51PXZa g2CKypMQ3m0ET0vR8j7S3C9TWMXc5RGxXrDrHwuZZdBtfll+YPrg/3fLg9JxSk9a5azb q/hOcB7Y3xRkN5nqvctU34kFYco2u5bpEWll0btYpx7aUSu0aNfIJ9VAMvjdLJ2aUXn4 plwjxZrv+0AWJCCEZJ10Uy21qLhAbHQi3AHYmycXywBDbMhQ/39HJeF8JE9SslcoHSvr ttqQ== MIME-Version: 1.0 X-Received: by 10.112.14.102 with SMTP id o6mr15527157lbc.28.1377256990294; Fri, 23 Aug 2013 04:23:10 -0700 (PDT) Received: by 10.114.176.231 with HTTP; Fri, 23 Aug 2013 04:23:10 -0700 (PDT) Date: Fri, 23 Aug 2013 13:23:10 +0200 Message-ID: Subject: 24.3.50; Isearch for an octal code From: Dani Moncayo To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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'. Why? It should be able, no? In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-08-22 on LEG570 Bzr revision: 113971 monnier@iro.umontreal.ca-20130822040645-0fc4fi87eir72jnb Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=/c/usr --enable-checking CFLAGS='-O0 -g3' CPPFLAGS='-DGLYPH_DEBUG=1 -I/c/usr/include'' Important settings: value of $LANG: ESN locale-coding-system: cp1252 default enable-multibyte-characters: t -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 18:54:26 2013 Received: (at 15166) by debbugs.gnu.org; 23 Aug 2013 22:54:26 +0000 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 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 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) From: Juri Linkov To: Dani Moncayo Subject: Re: bug#15166: 24.3.50; Isearch for an octal code Organization: JURTA References: Date: Sat, 24 Aug 2013 01:48:41 +0300 In-Reply-To: (Dani Moncayo's message of "Fri, 23 Aug 2013 13:23:10 +0200") Message-ID: <87vc2wowfq.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > 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) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 19:02:22 2013 Received: (at 15166) by debbugs.gnu.org; 23 Aug 2013 23:02:22 +0000 Received: from localhost ([127.0.0.1]:51052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VD0N4-0003A3-2Z for submit@debbugs.gnu.org; Fri, 23 Aug 2013 19:02:22 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:43500 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VD0N1-00039s-Pi for 15166@debbugs.gnu.org; Fri, 23 Aug 2013 19:02:20 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 73659258B9E935; Fri, 23 Aug 2013 16:02:18 -0700 (PDT) From: Juri Linkov To: Dani Moncayo Subject: Re: bug#15166: 24.3.50; Isearch for an octal code Organization: JURTA References: Date: Sat, 24 Aug 2013 01:58:56 +0300 In-Reply-To: (Dani Moncayo's message of "Fri, 23 Aug 2013 13:23:10 +0200") Message-ID: <87d2p4ovyn.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) BTW, while looking at `isearch-quote-char' I noticed that it requires a comment saying that `C-q SPC' is an obsolete feature (that is now replaced by `M-s SPC'). Then it should be also de-documented in the docstring of `isearch-forward-regexp': === 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 @@ -823,7 +823,6 @@ (defun isearch-forward-regexp (&optional In incremental searches, a space or spaces normally matches any whitespace defined by the variable `search-whitespace-regexp'. -To search for a literal space and nothing else, enter C-q SPC. To toggle whitespace matching, use `isearch-toggle-lax-whitespace'." (interactive "P\np") (isearch-mode t (null not-regexp) nil (not no-recursive-edit))) @@ -2730,6 +2748,8 @@ (defun isearch-quote-char (&optional cou ;; single-byte character set, and convert them to Emacs ;; characters. (if (and isearch-regexp isearch-regexp-lax-whitespace (= char ?\s)) + ;; Obsolete feature: to search for a literal space + ;; and nothing else, enter C-q SPC. (if (subregexp-context-p isearch-string (length isearch-string)) (isearch-process-search-string "[ ]" " ") (isearch-process-search-char char count)) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 21:15:50 2013 Received: (at 15166) by debbugs.gnu.org; 24 Aug 2013 01:15:50 +0000 Received: from localhost ([127.0.0.1]:51195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VD2SE-0006OY-87 for submit@debbugs.gnu.org; Fri, 23 Aug 2013 21:15:50 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:31339) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VD2SC-0006OQ-CF for 15166@debbugs.gnu.org; Fri, 23 Aug 2013 21:15:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFHO+LNT/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IPAS-Result: Av8EABK/CFHO+LNT/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="23138476" Received: from 206-248-179-83.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.179.83]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 Aug 2013 21:15:40 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 0CEB6AE1E0; Fri, 23 Aug 2013 21:15:46 -0400 (EDT) From: Stefan Monnier To: Juri Linkov Subject: Re: bug#15166: 24.3.50; Isearch for an octal code Message-ID: References: <87d2p4ovyn.fsf@mail.jurta.org> Date: Fri, 23 Aug 2013 21:15:46 -0400 In-Reply-To: <87d2p4ovyn.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 24 Aug 2013 01:58:56 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > BTW, while looking at `isearch-quote-char' I noticed that it > requires a comment saying that `C-q SPC' is an obsolete feature > (that is now replaced by `M-s SPC'). Why is C-q SPC obsolete? Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 21:25:41 2013 Received: (at 15166) by debbugs.gnu.org; 24 Aug 2013 01:25:41 +0000 Received: from localhost ([127.0.0.1]:51210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VD2bk-0006dE-EX for submit@debbugs.gnu.org; Fri, 23 Aug 2013 21:25:41 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:40598) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VD2bh-0006d3-JA for 15166@debbugs.gnu.org; Fri, 23 Aug 2013 21:25:38 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r7O1PZnk006543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 24 Aug 2013 01:25:36 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r7O1PYUj020417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 24 Aug 2013 01:25:35 GMT Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r7O1PYPb020408; Sat, 24 Aug 2013 01:25:34 GMT MIME-Version: 1.0 Message-ID: <6a807872-f807-4ed9-bba0-faaa710c1125@default> Date: Fri, 23 Aug 2013 18:25:33 -0700 (PDT) From: Drew Adams To: Stefan Monnier , Juri Linkov Subject: RE: bug#15166: 24.3.50; Isearch for an octal code References: <87d2p4ovyn.fsf@mail.jurta.org> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) > > BTW, while looking at `isearch-quote-char' I noticed that it > > requires a comment saying that `C-q SPC' is an obsolete feature > > (that is now replaced by `M-s SPC'). >=20 > Why is C-q SPC obsolete? I had the same question. `C-q' should just work here, like elsewhere - and it still does AFAICT. I'm guessing that perhaps you (Juri) meant only that it is no longer the *only* way to insert such a char into the search string, so it need not be advertised as such. But surely it should continue to be supported (and not considered deprecated obsolete), unless there is some good reason otherwise. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 05:48:26 2013 Received: (at 15166) by debbugs.gnu.org; 24 Aug 2013 09:48:26 +0000 Received: from localhost ([127.0.0.1]:51839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDASH-0005L1-Jx for submit@debbugs.gnu.org; Sat, 24 Aug 2013 05:48:25 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:42585 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDASF-0005Km-4Z for 15166@debbugs.gnu.org; Sat, 24 Aug 2013 05:48:23 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 13B7A258B9E935; Sat, 24 Aug 2013 02:48:20 -0700 (PDT) From: Juri Linkov To: Stefan Monnier Subject: Re: bug#15166: 24.3.50; Isearch for an octal code Organization: JURTA References: <87d2p4ovyn.fsf@mail.jurta.org> Date: Sat, 24 Aug 2013 12:20:59 +0300 In-Reply-To: (Stefan Monnier's message of "Fri, 23 Aug 2013 21:15:46 -0400") Message-ID: <8738pzmo4s.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> BTW, while looking at `isearch-quote-char' I noticed that it >> requires a comment saying that `C-q SPC' is an obsolete feature >> (that is now replaced by `M-s SPC'). > > Why is C-q SPC obsolete? The problem is that C-q SPC has limited applicability - it works only in regexp isearch, and has no effect in normal non-regexp isearch. This might be too confusing to users when typing the same key sequence unexpectedly works differently in different isearch modes. Initially C-q SPC was intended only for regexp isearch, but after introduction of isearch-lax-whitespace mode it can't be used in non-regexp mode because the C-q SPC feature was based on regexps. I don't propose to remove it now, keeping it for users that rely on it in regexp search. But to remove mentions from documentation to not confuse users about the feature that doesn't work in non-regexp mode. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 10:47:35 2013 Received: (at 15166) by debbugs.gnu.org; 24 Aug 2013 14:47:35 +0000 Received: from localhost ([127.0.0.1]:52566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDF7m-0007TQ-UB for submit@debbugs.gnu.org; Sat, 24 Aug 2013 10:47:35 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:49927) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDF7k-0007TH-Lh for 15166@debbugs.gnu.org; Sat, 24 Aug 2013 10:47:33 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r7OElUxY017097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 24 Aug 2013 14:47:31 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r7OElTxQ019999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 24 Aug 2013 14:47:29 GMT Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r7OElTuo019996; Sat, 24 Aug 2013 14:47:29 GMT MIME-Version: 1.0 Message-ID: <0bbc13a6-a62d-4b2a-8608-3b84d45303f2@default> Date: Sat, 24 Aug 2013 07:47:30 -0700 (PDT) From: Drew Adams To: Juri Linkov , Stefan Monnier Subject: RE: bug#15166: 24.3.50; Isearch for an octal code References: <87d2p4ovyn.fsf@mail.jurta.org> <8738pzmo4s.fsf@mail.jurta.org> In-Reply-To: <8738pzmo4s.fsf@mail.jurta.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) > > Why is C-q SPC obsolete? >=20 > The problem is that C-q SPC has limited applicability - > it works only in regexp isearch, and has no effect in > normal non-regexp isearch. This might be too confusing > to users when typing the same key sequence unexpectedly > works differently in different isearch modes. >=20 > Initially C-q SPC was intended only for regexp isearch, > but after introduction of isearch-lax-whitespace mode > it can't be used in non-regexp mode because the C-q SPC > feature was based on regexps. >=20 > I don't propose to remove it now, keeping it for users > that rely on it in regexp search. But to remove mentions > from documentation to not confuse users about the feature > that doesn't work in non-regexp mode. What doesn't work? Can you please elaborate? It's not clear to me what you mean by C-q SPC not working for non-regexp isearch. I can only guess that you mean that, although C-q SPC does in fact add a SPC char to the search string, that does not cause non-regexp isearch to search for only one SPC (per SPC char added to the search string). If that's what you mean then I don't see that as a problem. At least not a problem wrt C-q SPC. (The confusion is elsewhere.) In that case, C-q SPC still does its job. Anything confusing coming from the result is confusion coming from the fact that isearch now interprets any number of contiguous SPC chars in the search string - including, in particular, just one SPC char - as an arbitrarily long sequence of whitespace chars to match. I was not particularly in favor of that change to Emacs, as you know, but so be it. The point here is that given that change there is AFAICT nothing broken, unexpected, or confusing about the behavior of C-q SPC. (As far as I can see.) Perhaps you can give a recipe showing the confusion you have in mind, if it is different from what I am supposing, and if it is in fact something directly related to C-q SPC. Thx. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 19:44:46 2013 Received: (at 15166) by debbugs.gnu.org; 24 Aug 2013 23:44:47 +0000 Received: from localhost ([127.0.0.1]:53331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDNVe-0003p6-Jd for submit@debbugs.gnu.org; Sat, 24 Aug 2013 19:44:46 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:59214 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDNVc-0003or-42 for 15166@debbugs.gnu.org; Sat, 24 Aug 2013 19:44:45 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 59E79258B9E935; Sat, 24 Aug 2013 16:44:42 -0700 (PDT) From: Juri Linkov To: Drew Adams Subject: Re: bug#15166: 24.3.50; Isearch for an octal code Organization: JURTA References: <87d2p4ovyn.fsf@mail.jurta.org> <8738pzmo4s.fsf@mail.jurta.org> <0bbc13a6-a62d-4b2a-8608-3b84d45303f2@default> Date: Sun, 25 Aug 2013 02:38:48 +0300 In-Reply-To: <0bbc13a6-a62d-4b2a-8608-3b84d45303f2@default> (Drew Adams's message of "Sat, 24 Aug 2013 07:47:30 -0700 (PDT)") Message-ID: <87d2p2d5h3.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > What doesn't work? The docstring of `isearch-forward-regexp' says "To search for a literal space and nothing else, enter C-q SPC." The users might expect it to work the same way regardless of mode, but it doesn't search for a literal space in non-regexp mode. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 20:43:36 2013 Received: (at 15166) by debbugs.gnu.org; 25 Aug 2013 00:43:36 +0000 Received: from localhost ([127.0.0.1]:53402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDOQa-0006GH-0R for submit@debbugs.gnu.org; Sat, 24 Aug 2013 20:43:36 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:49138) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDOQX-0006G9-Un for 15166@debbugs.gnu.org; Sat, 24 Aug 2013 20:43:34 -0400 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r7P0hWNx024140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 25 Aug 2013 00:43:33 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r7P0hV0a006898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 25 Aug 2013 00:43:31 GMT Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r7P0hV96025516; Sun, 25 Aug 2013 00:43:31 GMT MIME-Version: 1.0 Message-ID: <1d57c871-b16e-48b5-acaf-bd628188f119@default> Date: Sat, 24 Aug 2013 17:43:29 -0700 (PDT) From: Drew Adams To: Juri Linkov Subject: RE: bug#15166: 24.3.50; Isearch for an octal code References: <87d2p4ovyn.fsf@mail.jurta.org> <8738pzmo4s.fsf@mail.jurta.org> <0bbc13a6-a62d-4b2a-8608-3b84d45303f2@default> <87d2p2d5h3.fsf@mail.jurta.org> In-Reply-To: <87d2p2d5h3.fsf@mail.jurta.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) > > What doesn't work? >=20 > The docstring of `isearch-forward-regexp' says "To search > for a literal space and nothing else, enter C-q SPC." > The users might expect it to work the same way regardless of mode, > but it doesn't search for a literal space in non-regexp mode. Got it. Yes, that text is now out of date. It never should have said that C-q SPC affects what is searched for, in any case. It should only have said (and can say now) that C-q SPC, as usual, appends a SPC char to the search string. What Isearch does with the text you put in the search string is another matter. But C-q SPC still works - it does what it is supposed to do. It is Isearch that is more complicated now, and not necessarily intuitive. But that cannot be blamed on C-q. ;-) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 27 05:59:21 2013 Received: (at 15166) by debbugs.gnu.org; 27 Aug 2013 09:59:22 +0000 Received: from localhost ([127.0.0.1]:58398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VEG3V-00071K-G1 for submit@debbugs.gnu.org; Tue, 27 Aug 2013 05:59:21 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:57522) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VEG3Q-000718-Ti for 15166@debbugs.gnu.org; Tue, 27 Aug 2013 05:59:19 -0400 Received: by mail-lb0-f181.google.com with SMTP id u14so2347033lbd.40 for <15166@debbugs.gnu.org>; Tue, 27 Aug 2013 02:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=veIMBvIkJ4BKgdWAr5eiAWNqZWrzmpIyLGxnW77gVxE=; b=O2eEFTKvsQHcxQBmUYitL2JqyVNBH2zGNSW/f/NB6SoPg1BYreFRfMIBsGiZv020Hk cF8Ctj2HPTMTsPGZ4jPmJrssKZ/lDwUZWYixpFOgm069Dnfr9ZL0/lvtmUPP/DRyqyVP wIYOJiAh1knuuATu2IYle0GXzAb6Q+9YvVShN1yb+CD00e0Lh/y87F+eA9v28C4zrVCc uDGLvWOWttuGvn5vcUB83W729wIMATd1irtuEqwG00Rjmcv8yI3rLrieHScP4Ee0LeI5 rtU6xNdEqLg9DBE7TFpgMA/xm8NyDjgOPmlkXqkJ1e61UuPIr9OPSTghi7IVnB5cw3pi aqvw== MIME-Version: 1.0 X-Received: by 10.152.115.176 with SMTP id jp16mr18000436lab.17.1377597553339; Tue, 27 Aug 2013 02:59:13 -0700 (PDT) Received: by 10.114.176.231 with HTTP; Tue, 27 Aug 2013 02:59:13 -0700 (PDT) In-Reply-To: <1d57c871-b16e-48b5-acaf-bd628188f119@default> References: <87d2p4ovyn.fsf@mail.jurta.org> <8738pzmo4s.fsf@mail.jurta.org> <0bbc13a6-a62d-4b2a-8608-3b84d45303f2@default> <87d2p2d5h3.fsf@mail.jurta.org> <1d57c871-b16e-48b5-acaf-bd628188f119@default> Date: Tue, 27 Aug 2013 11:59:13 +0200 Message-ID: Subject: Re: bug#15166: 24.3.50; Isearch for an octal code From: Dani Moncayo To: Juri Linkov Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15166 Cc: 15166@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi, It seems that everything is already clear regarding your two patches, no? (they are both fine). So, how about committing them? -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 27 12:00:04 2013 Received: (at 15166-done) by debbugs.gnu.org; 27 Aug 2013 16:00:04 +0000 Received: from localhost ([127.0.0.1]:59346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VELgY-0000hY-BQ for submit@debbugs.gnu.org; Tue, 27 Aug 2013 12:00:03 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:49762 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VELgU-0000gv-48 for 15166-done@debbugs.gnu.org; Tue, 27 Aug 2013 11:59:59 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 62CC4258B9E935; Tue, 27 Aug 2013 08:59:56 -0700 (PDT) From: Juri Linkov To: Dani Moncayo Subject: Re: bug#15166: 24.3.50; Isearch for an octal code Organization: JURTA References: <87d2p4ovyn.fsf@mail.jurta.org> <8738pzmo4s.fsf@mail.jurta.org> <0bbc13a6-a62d-4b2a-8608-3b84d45303f2@default> <87d2p2d5h3.fsf@mail.jurta.org> <1d57c871-b16e-48b5-acaf-bd628188f119@default> Date: Tue, 27 Aug 2013 18:58:45 +0300 In-Reply-To: (Dani Moncayo's message of "Tue, 27 Aug 2013 11:59:13 +0200") Message-ID: <87txibm8ga.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15166-done Cc: 15166-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > It seems that everything is already clear regarding your two patches, > no? (they are both fine). > > So, how about committing them? I committed the patch that fixes the bug reported by you. Thanks for the bug report. But I left unchanged the comment about `C-q SPC' for the chance if someone will have inclination to make it work in non-regexp mode somehow, because internally they both use regexps. You can see the internal regexp matching by typing too many spaces in non-regexp mode, and Isearch will report the error "Regular expression too big". This error message is confusing in non-regexp Isearch. So I propose another patch to make the error message more suitable to whitespace-matching non-regexp mode. And since regexp-based word-search mode reports the same confusing error message when there are too many words in the search string, it should be fixed as well: === modified file 'lisp/isearch.el' --- lisp/isearch.el 2013-08-08 23:59:14 +0000 +++ lisp/isearch.el 2013-08-27 15:58:01 +0000 @@ -2773,10 +2777,18 @@ (defun isearch-search () (invalid-regexp (setq isearch-error (car (cdr lossage))) - (if (string-match - "\\`Premature \\|\\`Unmatched \\|\\`Invalid " - isearch-error) - (setq isearch-error "incomplete input"))) + (cond + ((string-match + "\\`Premature \\|\\`Unmatched \\|\\`Invalid " + isearch-error) + (setq isearch-error "incomplete input")) + ((and (not isearch-regexp) + (string-match "\\`Regular expression too big" isearch-error)) + (cond + (isearch-word + (setq isearch-error "Too many words")) + ((and isearch-lax-whitespace search-whitespace-regexp) + (setq isearch-error "Too many spaces for whitespace matching")))))) (search-failed (setq isearch-success nil) From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 29 02:27:35 2013 Received: (at submit) by debbugs.gnu.org; 29 Aug 2013 06:27:35 +0000 Received: from localhost ([127.0.0.1]:34952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VEvhf-0004A8-3C for submit@debbugs.gnu.org; Thu, 29 Aug 2013 02:27:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37729) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VEvhc-00049x-5E for submit@debbugs.gnu.org; Thu, 29 Aug 2013 02:27:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEvhS-0003U5-JY for submit@debbugs.gnu.org; Thu, 29 Aug 2013 02:27:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEvhS-0003U1-GM for submit@debbugs.gnu.org; Thu, 29 Aug 2013 02:27:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEvhL-00077L-5n for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2013 02:27:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEvhD-0003RR-SA for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2013 02:27:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:33489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEvhD-0003RN-LO for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2013 02:27:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VEvhC-000677-GM for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2013 08:27:06 +0200 Received: from 70-59-17-50.hlrn.qwest.net ([70.59.17.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Aug 2013 08:27:06 +0200 Received: from kevin.d.rodgers by 70-59-17-50.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Aug 2013 08:27:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers Subject: Re: bug#15166: 24.3.50; Isearch for an octal code Date: Thu, 29 Aug 2013 00:27:33 -0600 Lines: 16 Message-ID: References: <87vc2wowfq.fsf@mail.jurta.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70-59-17-50.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <87vc2wowfq.fsf@mail.jurta.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) On 8/23/13 4:48 PM, Juri Linkov wrote: > + ;; 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))) Thank you! I thought I had lost my emacs-fu :-( -- Kevin Rodgers Denver, Colorado, USA From unknown Sat Jun 21 10:27:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 26 Sep 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator