I vaguely remember Owen saying he had some emacs lisp that correctly reindents the fields. I just do it manually, though.
On Thu, Sep 10, 2015 at 10:41 AM, Germán Poo-Caamaño <[email protected]> wrote: > On Thu, 2015-09-10 at 19:22 +0200, Sébastien Wilmet wrote: >> Hi, >> >> Renaming a GObject written in C can be done with some sed substitutions, >> but after that the indentation is broken. >> >> Do you know a tool to rename a GObject while still keeping a good >> indentation and coding style? > > Builder? > >> [...] >> In any case, it should be scriptable, to re-indent a list of files in >> one command, for example after changing the namespace of a group of >> GObjects. >> >> For function definitions, I've already written a script: >> https://github.com/swilmet/gnome-c-utils > > It seems you are re-inventing the good old indent(1) utility. > > http://linux.die.net/man/1/indent > > -- > Germán Poo-Caamaño > http://calcifer.org/ > > _______________________________________________ > desktop-devel-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/desktop-devel-list -- Jasper _______________________________________________ desktop-devel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/desktop-devel-list
