Re: Script to format the functions in a C header?
- From: Daiki Ueno <ueno gnu org>
- To: Christian Hergert <christian hergert me>
- Cc: desktop-devel-list gnome org
- Subject: Re: Script to format the functions in a C header?
- Date: Tue, 22 Nov 2016 19:03:02 +0100
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:
http://elpa.gnu.org/packages/gnome-c-style.html
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.
Regards,
--
Daiki Ueno
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]