bug-gnulib
[Top][All Lists]
Advanced

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

Re: underscores in gnulib file names


From: Bruno Haible
Subject: Re: underscores in gnulib file names
Date: Fri, 7 Sep 2007 01:02:47 +0200
User-agent: KMail/1.5.4

Hi Paul,

> * Change getopt_.h to getopt.eh, and similarly for the other files
>   whose names end in "-.h".  ".eh" is short for "edit-needed header".

This is awful. Text editors, xgettext, and other tools use the filename
suffix to decide which parser to apply. For example, the KDE editor 'kate'
does no syntax coloring for a filename ending in ".eh". (See attached
screenshot.) Such a move would greatly damage the developer comfort.

> RMS writes:
> 
> > Our convention is to use dashes, not underscores.
> > The names getopt_.h and getopt_int.h don't follow
> > this convention.
> 
> > In the long term, would you please change them?

I guess that this request is about the Emacs sources, and about the
files imported into Emacs from gnulib, right? Not about gnulib as a
source code repository.

Then I would propose to do a file renaming as part of the step that
copies files from gnulib into emacs.

If this is done manually (by you, probably?), then two symlinks on your
disk or two lines in the updating script will do.

If it is done by use of gnulib-tool, then I'd find it reasonable to add
an extra option for such renaming to gnulib-tool. It will take about 20
lines of code in gnulib-tool (first, get the list of files to rename,
second, set up the 'sed' substitutions to perform the renaming on the file
names and on the contents of all files). 20 lines of code in gnulib-tool
are *much* better than a large number of nonintuitive file names in gnulib.

Bruno

PNG image


reply via email to

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