all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using indent program as filter to automatically view read-only C files
@ 2006-02-03 11:46 juanleon1
  2006-02-03 18:46 ` Kevin Rodgers
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: juanleon1 @ 2006-02-03 11:46 UTC (permalink / raw)


Hi,

I have to work with C/C++ files with a very ugly and inconsistent
indentation (many developers adding things with no style guide). This
is very distracting, and since I cannot change them (to avoid conflicts
when taking/carryng changes from/to other branches), I had think that
for read-only files (those that I have not opened in the revision
control system), it would be nice if emacs could run automagically the
"indent" program so I can see the code "beatyfully" indented.

I didn't find anything obvious on the net for that. I do not wanna
modify files in disk, only to make emacs to put the indent output in
the buffer without changing variables like `buffer-file-name' and so. I
would like this to be done in a transparent way when opening a C/C++
file (via find-file, find-tag or whatever).

Before trying to code something like that myself (and most probably
reinvent the wheel), I would like to know if anybody knows if this (or
something similar enough I could reuse/modify) is already available.

Any ideas welcome.

Thanks
juanleon

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-02-06 15:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-03 11:46 Using indent program as filter to automatically view read-only C files juanleon1
2006-02-03 18:46 ` Kevin Rodgers
2006-02-03 19:06 ` François Gannaz
2006-02-03 19:39 ` Eli Zaretskii
2006-02-03 23:10   ` Harry Putnam
     [not found] ` <mailman.59.1138996411.2860.help-gnu-emacs@gnu.org>
2006-02-06  4:02   ` Paul Whitfield
     [not found] ` <mailman.36.1138992933.2860.help-gnu-emacs@gnu.org>
2006-02-06 15:27   ` juanleon1

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.