Emacs local variables sections in files; time-stamping

2011-02-22 Thread Glenn Morris
Hi, I'm not sure if I should be reporting this to gnulib or to the various upstreams from which the relevant files derive; but it seems to be a common feature... We have various files in Emacs that are synced from gnulib now. Several of them: compile, config.guess, config.sub, depcomp,

Re: Emacs local variables sections in files; time-stamping

2011-02-22 Thread Glenn Morris
Eric Blake wrote (on Tue, 22 Feb 2011 at 16:38 -0700): Firstly, a minor point. write-file-hooks is obsolete since Emacs 22.1, replaced by write-file-functions. (Actually, the Emacs documentation suggests using before-save-hook for time-stamping.) And what's the portable fallback, for

Re: Emacs local variables sections in files; time-stamping

2011-02-22 Thread Glenn Morris
Glenn Morris wrote (on Tue, 22 Feb 2011 at 19:29 -0500): With regards to dir-locals, I think you can do it using a file containing: ((nil . ((eval . (add-hook 'before-save-hook 'time-stamp) And you could of course put the other settings in there, which ought to make things much tidier

Licence for gnulib.mk slightly vague

2011-09-26 Thread Glenn Morris
Hi, The copy of gnulib.mk in Emacs says: # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration

Re: SHA, MD, and openssl

2013-12-11 Thread Glenn Morris
Pádraig Brady wrote: BTW openssl.org says it's OK to use these interfaces from GPL software due to the system lib exception: http://www.openssl.org/support/faq.html#LEGAL2 But some people disagree with that interpretation, eg: http://lwn.net/Articles/428111/

Re: [PATCH] gitlog-to-changelog: improve gitmerge.el commits

2015-06-20 Thread Glenn Morris
No other package besides Emacs uses gitmerge.el, so I don't see that this is relevant for upstream gnulib.

Replace use of obsolete Emacs feature "write-file-hooks"

2018-03-06 Thread Glenn Morris
Hi, Many gnulib files contain an Emacs-specific feature like the following, eg in build-aux/gitlog-to-changelog: eval: (add-hook 'write-file-hooks 'time-stamp) write-file-hooks is obsolete since Emacs 22.1 (released June 2007), and hopefully can be removed from Emacs one day. Please replace

Re: Replace use of obsolete Emacs feature "write-file-hooks"

2018-03-06 Thread Glenn Morris
PS If you drop Emacs < 23.1 (released July 2009), you can switch to a single .dir-locals.el file (rather than having the same stanza in multiple source files), as someone pointed out in http://lists.gnu.org/r/bug-gnulib/2011-02/msg00282.html

Re: Replace use of obsolete Emacs feature "write-file-hooks"

2018-03-07 Thread Glenn Morris
Thanks for replacing the obsolete forms. A few files were already using write-file-functions; I don't know if you want to change those to before-save-hook, for consistency. >From today's gnulib: build-aux/config.sub build-aux/config.guess doc/standards.texi

Re: Replace use of obsolete Emacs feature "write-file-hooks"

2018-03-06 Thread Glenn Morris
Paul Eggert wrote (on Tue, 6 Mar 2018 at 19:43 -0800): > That would make sense if we assume that Gnulib source files live in a > directory > controlled by the .dir-locals.el file. However, Gnulib is designed to copy > source files hither and yon, and it'd be a pain to arrange to update the >