Re: Using xemacs's indent feature in batch mode

"Stephen J. Turnbull" <[email protected]>
Newsgroups gmane.emacs.xemacs.windows
Organization The XEmacs Project
Message-ID <[email protected]>
>>>>> "James" == James Liang <Liang> writes:

    James> I'd like to run xemacs in batch mode and perform the
    James> indentation, but the command that I usually
    James> use(indent-region) requires that I first select a region.

xemacs -batch file.C -eval '(indent-region (point-min) (point-max))' \
       -f save-buffers-kill-emacs

should come close.  (You may need to substitute "-eval
'(save-buffers-kill-emacs t)'" for the last function.)

Note that you can save startup costs by repeating the "fileN.C -eval
'(indent-region ...)'" sequence multiple times.

-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.