emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: include Ada Reference Manual info files in ada-mode ELPA package?


From: Stephen Leake
Subject: Re: include Ada Reference Manual info files in ada-mode ELPA package?
Date: Sun, 28 Sep 2014 09:00:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt)

Andreas Schwab <address@hidden> writes:

> Stephen Leake <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]