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 >

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

2018-03-06 Thread Paul Eggert
Glenn Morris wrote: 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) That would make sense if we assume that Gnulib source files live in a directory controlled by the .dir-locals.el fi

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

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