From unknown Sun Jun 22 04:12:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6743: Backslash regexp in Elisp manual Resent-From: Arni Magnusson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jul 2010 23:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6743@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12802735727315 (code B ref -1); Tue, 27 Jul 2010 23:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jul 2010 23:32:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odtdk-0001tw-1s for submit@debbugs.gnu.org; Tue, 27 Jul 2010 19:32:52 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odtdf-0001to-9z for submit@debbugs.gnu.org; Tue, 27 Jul 2010 19:32:51 -0400 Received: from lists.gnu.org ([199.232.76.165]:34489) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OdtdQ-0006g7-CU for submit@debbugs.gnu.org; Tue, 27 Jul 2010 19:32:32 -0400 Received: from [140.186.70.92] (port=48848 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdtdI-0004BT-UE for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 19:32:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Odtcm-0008Qy-0q for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 19:31:52 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:42415) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odtcl-0008Ph-G8 for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 19:31:51 -0400 X-Virus-Scanned: amavisd-new at hafro.is Received: from hafstormur.hafro.is (hafstormur [130.208.66.52]) by hafgarpur.hafro.is (8.14.2/8.14.2/hafro-2.46) with ESMTP id o6RNVf3E023034 for ; Tue, 27 Jul 2010 23:31:42 GMT Received: from hafstormur.hafro.is (localhost [127.0.0.1]) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-1.6) with ESMTP id o6RNVctV003213 for ; Tue, 27 Jul 2010 23:31:39 GMT Received: from localhost (arnima@localhost) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-0.3) with ESMTP id o6RNVZmC003208 for ; Tue, 27 Jul 2010 23:31:36 GMT X-Authentication-Warning: hafstormur.hafro.is: arnima owned process doing -bs Date: Tue, 27 Jul 2010 23:31:30 +0000 (UTC) From: Arni Magnusson Message-ID: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.5 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) The current version (23.2) of the Elisp manual (http://www.gnu.org/software/emacs/manual/texi/elisp.texi.tar.gz) has a minor typo in Section 34.3.1.1 Special Characters in Regular Expressions (searching.texi) where Therefore, the read syntax for a regular expression matching @samp{\} is @code{"\\\\"}. should be Therefore, the read syntax for a regular expression matching @samp{\\} is @code{"\\\\"}. Arni From unknown Sun Jun 22 04:12:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6743: Backslash regexp in Elisp manual Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jul 2010 00:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arni Magnusson Cc: 6743@debbugs.gnu.org Received: via spool by 6743-submit@debbugs.gnu.org id=B6743.12802767498832 (code B ref 6743); Wed, 28 Jul 2010 00:26:01 +0000 Received: (at 6743) by debbugs.gnu.org; 28 Jul 2010 00:25:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OduSy-0002IP-67 for submit@debbugs.gnu.org; Tue, 27 Jul 2010 20:25:48 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OduSw-0002IE-W7 for 6743@debbugs.gnu.org; Tue, 27 Jul 2010 20:25:47 -0400 Received: by bwz7 with SMTP id 7so3996725bwz.3 for <6743@debbugs.gnu.org>; Tue, 27 Jul 2010 17:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=MfkZCAPBFqtHE3tbAyhIYhS3pZel4SpBq1kpXkO1oOM=; b=IICGuzQ1qTH3mLld25BdRy470EzqUkke678+7dqBIqWp8yPn6duf1EGHIUdpx4q+Rl orppIqCmvP8V4KLqJfV+j+JgK7Zdg8YZglL1uYieWqkqQKI7fqNzq9y+VpT9pt3MsUVy n61hLPZuiem+sp1eLOCDC0BRVGTD9H8X6Qgps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=HlQj8WHOAM1VYhLRM/IleAdfzlOWYVS4lVcJCHFpBfY+l1gH6IKheT9j+kJOblkTfn gwQF3bNg5l5eb8y+VifiG96j6kLK5WiRWYHEgwtoHeIYtOO4BsSzu6Xp3SYw4EPKOvfs OYtqoGoe+1hT0DGGvM+XAydPtb/PxBkRP0EIU= Received: by 10.204.127.75 with SMTP id f11mr7425090bks.85.1280276755207; Tue, 27 Jul 2010 17:25:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.180.136 with HTTP; Tue, 27 Jul 2010 17:25:35 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Wed, 28 Jul 2010 02:25:35 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On Wed, Jul 28, 2010 at 01:31, Arni Magnusson wrote: > =C2=A0Therefore, the read syntax for a regular expression matching > =C2=A0@samp{\} is @code{"\\\\"}. > > should be > > =C2=A0Therefore, the read syntax for a regular expression matching > =C2=A0@samp{\\} is @code{"\\\\"}. Why do you think so? The section is talking about the read syntax. To match \, you need a regexp with \\, and to write \\ in a string, you need \\\\. Try emacs -Q \ M-: (looking-at "\\") =3D> (invalid-regexp "Trailing backslash") q M-: (looking-at "\\\\") =3D> t Note that \\\\ is matching a single \ on the buffer, not \\ =C2=A0 =C2=A0 Juanma From unknown Sun Jun 22 04:12:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6743: Backslash regexp in Elisp manual Resent-From: Arni Magnusson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jul 2010 02:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juanma Barranquero Cc: 6743@debbugs.gnu.org Received: via spool by 6743-submit@debbugs.gnu.org id=B6743.128028568412714 (code B ref 6743); Wed, 28 Jul 2010 02:55:02 +0000 Received: (at 6743) by debbugs.gnu.org; 28 Jul 2010 02:54:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odwn5-0003J1-Jw for submit@debbugs.gnu.org; Tue, 27 Jul 2010 22:54:43 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odwn2-0003Iv-9k for 6743@debbugs.gnu.org; Tue, 27 Jul 2010 22:54:41 -0400 X-Virus-Scanned: amavisd-new at hafro.is Received: from hafstormur.hafro.is (hafstormur [130.208.66.52]) by hafgarpur.hafro.is (8.14.2/8.14.2/hafro-2.46) with ESMTP id o6S2sk4w024999; Wed, 28 Jul 2010 02:54:47 GMT Received: from hafstormur.hafro.is (localhost [127.0.0.1]) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-1.6) with ESMTP id o6S2skEE004352; Wed, 28 Jul 2010 02:54:46 GMT Received: from localhost (arnima@localhost) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-0.3) with ESMTP id o6S2skXg004347; Wed, 28 Jul 2010 02:54:46 GMT X-Authentication-Warning: hafstormur.hafro.is: arnima owned process doing -bs Date: Wed, 28 Jul 2010 02:54:46 +0000 (GMT) From: Arni Magnusson In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-796773310-139236191-1280284696=:4243" Content-ID: X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---796773310-139236191-1280284696=:4243 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1; FORMAT=flowed Content-ID: Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by hafgarpur.hafro.is id o6S2sk4w024999 Sorry, my mistake. The sentence is correct in the manual. Arni On Wed, 28 Jul 2010, Juanma Barranquero wrote: > On Wed, Jul 28, 2010 at 01:31, Arni Magnusson wrote: > >> =A0Therefore, the read syntax for a regular expression matching >> =A0@samp{\} is @code{"\\\\"}. >> >> should be >> >> =A0Therefore, the read syntax for a regular expression matching >> =A0@samp{\\} is @code{"\\\\"}. > > Why do you think so? > > The section is talking about the read syntax. To match \, you need a=20 > regexp with \\, and to write \\ in a string, you need \\\\. > > Try > > emacs -Q > \ > M-: (looking-at "\\") =3D> (invalid-regexp "Trailing backslash= ") > q > M-: (looking-at "\\\\") =3D> t > > Note that \\\\ is matching a single \ on the buffer, not \\ > > =A0 =A0 Juanma > ---796773310-139236191-1280284696=:4243-- From unknown Sun Jun 22 04:12:25 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Arni Magnusson Subject: bug#6743: closed (Re: bug#6743: Backslash regexp in Elisp manual) Message-ID: References: X-Gnu-PR-Message: they-closed 6743 X-Gnu-PR-Package: emacs Reply-To: 6743@debbugs.gnu.org Date: Wed, 28 Jul 2010 02:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1280285942-12826-1" This is a multi-part message in MIME format... ------------=_1280285942-12826-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6743: Backslash regexp in Elisp manual which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6743@debbugs.gnu.org. --=20 6743: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6743 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1280285942-12826-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6743-done) by debbugs.gnu.org; 28 Jul 2010 02:58:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odwqj-0003Kh-V1 for submit@debbugs.gnu.org; Tue, 27 Jul 2010 22:58:30 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odwqi-0003Kc-Nd for 6743-done@debbugs.gnu.org; Tue, 27 Jul 2010 22:58:29 -0400 Received: by bwz7 with SMTP id 7so4034986bwz.3 for <6743-done@debbugs.gnu.org>; Tue, 27 Jul 2010 19:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=HpUrm2amyPbH/jYOAxPgH6MOQ9BFCJVTrr3VV2GC57k=; b=RoQjwO5i7iprdBO9989K9mRx07mualAjRXHioZA0Pqn4PcWPgCfNOE4lyJr+Eddvth PGPuzfltCk6+jC0c/s6DwfabTDfdww022TQ1OSYNW6djQ2FBj24B9ctIukfXpAp9CMf4 lPuQEHhYSKkoDe9MlRxz3OlJ8dkJGXfYm/SkU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Ttrelu4Gp5QkNBnmIP+y2gb5FPE2h9PN1cyuwvOHavZo54Q2M484Hg83jMLl79OVZN p/QVTVopo/niw01zMs/QtopsrLYRpiZ9WzdLnjAL54WfYSIbYZjJqj+XLskC9SFBLqU3 LmMpg9IoWxPkAQV9DEtjGBovABOKaxkNRMXAo= Received: by 10.204.21.135 with SMTP id j7mr6964298bkb.198.1280285917154; Tue, 27 Jul 2010 19:58:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.180.136 with HTTP; Tue, 27 Jul 2010 19:58:17 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Wed, 28 Jul 2010 04:58:17 +0200 Message-ID: Subject: Re: bug#6743: Backslash regexp in Elisp manual To: Arni Magnusson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6743-done Cc: 6743-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > Sorry, my mistake. The sentence is correct in the manual. Thanks for the report anyway. =C2=A0 =C2=A0 Juanma ------------=_1280285942-12826-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Jul 2010 23:32:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odtdk-0001tw-1s for submit@debbugs.gnu.org; Tue, 27 Jul 2010 19:32:52 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odtdf-0001to-9z for submit@debbugs.gnu.org; Tue, 27 Jul 2010 19:32:51 -0400 Received: from lists.gnu.org ([199.232.76.165]:34489) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OdtdQ-0006g7-CU for submit@debbugs.gnu.org; Tue, 27 Jul 2010 19:32:32 -0400 Received: from [140.186.70.92] (port=48848 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdtdI-0004BT-UE for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 19:32:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Odtcm-0008Qy-0q for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 19:31:52 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:42415) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odtcl-0008Ph-G8 for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 19:31:51 -0400 X-Virus-Scanned: amavisd-new at hafro.is Received: from hafstormur.hafro.is (hafstormur [130.208.66.52]) by hafgarpur.hafro.is (8.14.2/8.14.2/hafro-2.46) with ESMTP id o6RNVf3E023034 for ; Tue, 27 Jul 2010 23:31:42 GMT Received: from hafstormur.hafro.is (localhost [127.0.0.1]) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-1.6) with ESMTP id o6RNVctV003213 for ; Tue, 27 Jul 2010 23:31:39 GMT Received: from localhost (arnima@localhost) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-0.3) with ESMTP id o6RNVZmC003208 for ; Tue, 27 Jul 2010 23:31:36 GMT X-Authentication-Warning: hafstormur.hafro.is: arnima owned process doing -bs Date: Tue, 27 Jul 2010 23:31:30 +0000 (UTC) From: Arni Magnusson To: bug-gnu-emacs@gnu.org Subject: Backslash regexp in Elisp manual Message-ID: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) The current version (23.2) of the Elisp manual (http://www.gnu.org/software/emacs/manual/texi/elisp.texi.tar.gz) has a minor typo in Section 34.3.1.1 Special Characters in Regular Expressions (searching.texi) where Therefore, the read syntax for a regular expression matching @samp{\} is @code{"\\\\"}. should be Therefore, the read syntax for a regular expression matching @samp{\\} is @code{"\\\\"}. Arni ------------=_1280285942-12826-1--