From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: include Ada Reference Manual info files in ada-mode ELPA package? Date: Sun, 28 Sep 2014 11:25:37 -0500 Message-ID: <857g0nhfum.fsf@stephe-leake.org> 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 1411921583 27610 80.91.229.3 (28 Sep 2014 16:26:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2014 16:26:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 28 18:26:14 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 1XYHIb-00015D-52 for ged-emacs-devel@m.gmane.org; Sun, 28 Sep 2014 18:26:13 +0200 Original-Received: from localhost ([::1]:60301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYHIa-0002jT-PA for ged-emacs-devel@m.gmane.org; Sun, 28 Sep 2014 12:26:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYHIJ-0002ii-44 for emacs-devel@gnu.org; Sun, 28 Sep 2014 12:26:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYHIC-0001Wt-1i for emacs-devel@gnu.org; Sun, 28 Sep 2014 12:25:55 -0400 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.227]:49780 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYHIB-0001WX-SZ for emacs-devel@gnu.org; Sun, 28 Sep 2014 12:25:47 -0400 Original-Received: from [70.94.38.149] ([70.94.38.149:54909] helo=TAKVER) by dnvrco-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 09/97-06155-58638245; Sun, 28 Sep 2014 16:25:42 +0000 In-Reply-To: <87d2aflrxd.fsf@fencepost.gnu.org> (David Kastrup's message of "Sun, 28 Sep 2014 16:51:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-RR-Connecting-IP: 107.14.64.142:25 X-Authority-Analysis: v=2.1 cv=FMWVxoYs c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=9XSUBuVRJI8A:10 a=o_R75loqY_IA:10 a=IkcTkHD0fZMA:10 a=9i_RQKNPAAAA:8 a=mDV3o1hIAAAA:8 a=tBb2bbeoAAAA:8 a=EQ0aQrPZPFkaf1X3osAA:9 a=QEXdDO2ut3YA:10 a=ii61gXl28gQA:10 a=FMD1XRJ_Ct4A:10 a=YuKU6ANggZ8A:10 a=pi0N5G7fiKIA:10 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: BaiduSpider X-Received-From: 107.14.73.227 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:174776 Archived-At: David Kastrup writes: > Stephen Leake writes: > >> Andreas Schwab writes: >> >>> Stephen Leake writes: >>> >>>> --- a/admin/archive-contents.el >>>> +++ b/admin/archive-contents.el >>>> @@ -167,7 +167,7 @@ EXTRAS is an alist with additional metadata. >>>>=20=20 >>>> PKG is the name of the package and DIR is the directory where it is." >>>> (let* ((mainfile (expand-file-name (concat pkg ".el") dir)) >>>> - (files (directory-files dir nil "\\.el\\'"))) >>>> + (files (directory-files dir nil "^dir$\\|\\.el\\'"))) >>> >>> Please use \` and \' instead of ^ and $. >> >> What is the rationale for that? > > File names can contain newlines. Ah; I forgot/didn't realize that. > >> Is it documented somewhere? I looked for an "elisp style guide" in >> emacs/docs/*, and in various READMEs, but didn't see anything obvious. > > That's not a question of style. The meaning is different. Please check > > (info "(Emacs) Regexps") > > =E2=80=98^=E2=80=99 > is a special character that matches the empty string, but only at > the beginning of a line in the text being matched. Otherwise it > fails to match anything. Thus, =E2=80=98^foo=E2=80=99 matches a =E2= =80=98foo=E2=80=99 that occurs > at the beginning of a line. (info "(elisp) "Regexp Special") in 24.3.93.1 says: ^ ... When matching a string instead of a buffer, `^' matches at the beginning of the string or after a newline character. Which I read, and noticed was different from \`, but did not appreciate the significance --=20 -- Stephe