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 09:00:16 -0500 Message-ID: <85d2afhmkv.fsf@stephe-leake.org> References: <85zjdqhys4.fsf@stephe-leake.org> <85lhp4gz8s.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411912850 23458 80.91.229.3 (28 Sep 2014 14:00:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2014 14:00:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 28 16:00:43 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 1XYF1n-0002yP-BA for ged-emacs-devel@m.gmane.org; Sun, 28 Sep 2014 16:00:43 +0200 Original-Received: from localhost ([::1]:59887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYF1n-0006Co-06 for ged-emacs-devel@m.gmane.org; Sun, 28 Sep 2014 10:00:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYF1e-0006Bi-BB for emacs-devel@gnu.org; Sun, 28 Sep 2014 10:00:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYF1Y-0004bO-Ip for emacs-devel@gnu.org; Sun, 28 Sep 2014 10:00:34 -0400 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.225]:13968 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYF1Y-0004aG-Do for emacs-devel@gnu.org; Sun, 28 Sep 2014 10:00:28 -0400 Original-Received: from [70.94.38.149] ([70.94.38.149:54845] helo=TAKVER) by dnvrco-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id A5/7F-23176-57418245; Sun, 28 Sep 2014 14:00:22 +0000 In-Reply-To: (Andreas Schwab's message of "Sun, 28 Sep 2014 11:06:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-RR-Connecting-IP: 107.14.64.118:25 X-Authority-Analysis: v=2.1 cv=d8V7yHTE 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=9i_RQKNPAAAA:8 a=tBb2bbeoAAAA:8 a=k4Iaws_8ZIvk41YS3j4A:9 a=YuKU6ANggZ8A:10 a=FMD1XRJ_Ct4A:10 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: BaiduSpider X-Received-From: 107.14.73.225 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:174770 Archived-At: 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. >> >> 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? Is it documented somewhere? I looked for an "elisp style guide" in emacs/docs/*, and in various READMEs, but didn't see anything obvious. I find ^ and $ more readable (I had to look up \', and did not know about \`). Although it does make sense to use the same style within one regexp. -- -- Stephe