From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arni Magnusson Newsgroups: gmane.emacs.bugs Subject: bug#6743: Backslash regexp in Elisp manual Date: Wed, 28 Jul 2010 02:54:46 +0000 (GMT) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-796773310-139236191-1280284696=:4243" X-Trace: dough.gmane.org 1280286474 6857 80.91.229.12 (28 Jul 2010 03:07:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 03:07:54 +0000 (UTC) Cc: 6743@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 28 05:07:52 2010 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.69) (envelope-from ) id 1Odwzm-0001db-VA for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jul 2010 05:07:51 +0200 Original-Received: from localhost ([127.0.0.1]:33267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odwzm-0003oV-9w for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 23:07:50 -0400 Original-Received: from [140.186.70.92] (port=38960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odwze-0003oF-HF for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 23:07:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Odwzc-0002RN-U5 for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 23:07:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54472) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odwzc-0002RI-S0 for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 23:07:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OdwnO-0003JJ-4v; Tue, 27 Jul 2010 22:55:02 -0400 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 6743-submit@debbugs.gnu.org id=B6743.128028568412714 (code B ref 6743); Wed, 28 Jul 2010 02:55:02 +0000 Original-Received: (at 6743) by debbugs.gnu.org; 28 Jul 2010 02:54:44 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 In-Reply-To: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) Content-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Jul 2010 22:55:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:39018 Archived-At: 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--