From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: include Ada Reference Manual info files in ada-mode ELPA package? Date: Sun, 28 Sep 2014 16:51:10 +0200 Organization: Organization?!? Message-ID: <87d2aflrxd.fsf@fencepost.gnu.org> References: <85zjdqhys4.fsf@stephe-leake.org> <85lhp4gz8s.fsf@stephe-leake.org> <85d2afhmkv.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1411915920 24541 80.91.229.3 (28 Sep 2014 14:52:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2014 14:52:00 +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:51:53 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 1XYFpF-0002tL-S3 for ged-emacs-devel@m.gmane.org; Sun, 28 Sep 2014 16:51:49 +0200 Original-Received: from localhost ([::1]:59980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYFpF-0001CV-FX for ged-emacs-devel@m.gmane.org; Sun, 28 Sep 2014 10:51:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYFp6-00015m-SV for emacs-devel@gnu.org; Sun, 28 Sep 2014 10:51:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYFoz-0006jA-6p for emacs-devel@gnu.org; Sun, 28 Sep 2014 10:51:40 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:33855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYFoz-0006ip-02 for emacs-devel@gnu.org; Sun, 28 Sep 2014 10:51:33 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XYFor-0002ju-6e for emacs-devel@gnu.org; Sun, 28 Sep 2014 16:51:25 +0200 Original-Received: from x2f450ef.dyn.telefonica.de ([2.244.80.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Sep 2014 16:51:25 +0200 Original-Received: from dak by x2f450ef.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Sep 2014 16:51:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: x2f450ef.dyn.telefonica.de X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:x9NSn2OfYp7i+XE84Ox6EwQVYkk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:174773 Archived-At: 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. >>> >>> 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. > 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") ‘^’ 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, ‘^foo’ matches a ‘foo’ that occurs at the beginning of a line. For historical compatibility reasons, ‘^’ can be used with this meaning only at the beginning of the regular expression, or after ‘\(’ or ‘\|’. ‘$’ is similar to ‘^’ but matches only at the end of a line. Thus, ‘x+$’ matches a string of one ‘x’ or more at the end of a line. For historical compatibility reasons, ‘$’ can be used with this meaning only at the end of the regular expression, or before ‘\)’ or ‘\|’. and (info "(Emacs) Regexp Backslash") ‘\`’ matches the empty string, but only at the beginning of the string or buffer (or its accessible portion) being matched against. ‘\'’ matches the empty string, but only at the end of the string or buffer (or its accessible portion) being matched against. > 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. It's not a question of style but of meaning. -- David Kastrup