[gnu.emacs.bug] Indent-region seems unnec. stupid

art@DINORAH.WUSTL.EDU (Arthur B. Smith) (12/22/88)

It may be my imagination (I haven't looked at the code, my Lisp is rusty at 
best) but it seems like indent-region (at least in C-mode) is unnecessarily 
stupid.  It appears (from the length of time taken) that it recomputes the 
current indent level separately for each line, rather than remembering it 
from the previous line.  Near the end of long source files (i.e., more than
about 100 lines down) it takes several minutes to reindent a typical function
of a couple dozen lines, so this is not a minor point.  Is this something 
which is readily corrected?  Am I even right in the first place?  We are 
running gnu emacs v 18.51

	-art smith  (art@dinorah.wustl.edu)