Re: Script to format the functions in a C header?

Christian Hergert <christian hergert me> writes:

I think Owen wrote an elisp macro for Emacs years ago called
"GNOME-align-args" or something like that. That one *might* have
handled blocks of functions.

For what it's worth, I wrote such elisp some time ago:

If anyone is trying to implement the feature somewhere, I would suggest
to provide two separate scripts or commands to do the job: (1) guess the
alignment rule somehow, e.g. from the existing C code, and (2) do the
actual formatting.  That would be helpful to avoid unnecessary
formatting changes when creating a patch for existing projects.

Daiki Ueno

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