From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: include Ada Reference Manual info files in ada-mode ELPA package? Date: Sun, 28 Sep 2014 08:44:21 -0700 (PDT) Message-ID: <36efd654-e8f5-485a-8133-88172824d1aa@default> References: <85zjdqhys4.fsf@stephe-leake.org> <85lhp4gz8s.fsf@stephe-leake.org> <85d2afhmkv.fsf@stephe-leake.org> <87d2aflrxd.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1411919096 28547 80.91.229.3 (28 Sep 2014 15:44:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2014 15:44:56 +0000 (UTC) To: David Kastrup , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 28 17:44:49 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XYGeX-0003s4-2t for ged-emacs-devel@m.gmane.org; Sun, 28 Sep 2014 17:44:49 +0200 Original-Received: from localhost ([::1]:60103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYGeW-00038j-Nx for ged-emacs-devel@m.gmane.org; Sun, 28 Sep 2014 11:44:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYGeK-00037t-Tt for emacs-devel@gnu.org; Sun, 28 Sep 2014 11:44:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYGeC-00009Y-6G for emacs-devel@gnu.org; Sun, 28 Sep 2014 11:44:36 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:39692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYGeB-00008F-WB; Sun, 28 Sep 2014 11:44:28 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s8SFiKZb029023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 28 Sep 2014 15:44:21 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s8SFiKVZ024863 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 28 Sep 2014 15:44:20 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s8SFiJNf010997; Sun, 28 Sep 2014 15:44:19 GMT In-Reply-To: <87d2aflrxd.fsf@fencepost.gnu.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174774 Archived-At: > >> Please use \` and \' instead of ^ and $. > > What is the rationale for that? > File names can contain newlines. > > Is it documented somewhere? >=20 > (info "(Emacs) Regexps") > =E2=80=98^=E2=80=99 > =E2=80=98$=E2=80=99 >=20 > and (info "(Emacs) Regexp Backslash") > =E2=80=98\`=E2=80=99 > =E2=80=98\'=E2=80=99 It seems like this is a fairly common question/misunderstanding. ^ and $ were even used in the Emacs source code for a long time in places where \` and \' are more appropriate. It would be good to add cross-refs here (both directions), and to explicitly point out what the difference is, and that while the effect can sometimes be similar, \`...\' is often what you want when matching strings.