From: Sanford Selznick <see-message@for.real.address.com>
Subject: Re: M-x indent-region
Date: Tue, 06 May 2003 20:47:37 -0700 [thread overview]
Message-ID: <see-message-7937D5.20473606052003@news.west.cox.net> (raw)
In-Reply-To: 84el3cuiqd.fsf@lucy.is.informatik.uni-duisburg.de
In article <84el3cuiqd.fsf@lucy.is.informatik.uni-duisburg.de>,
kai.grossjohann@gmx.net (Kai Grossjohann) wrote:
> Yeah. Maybe it helps to set a really long max line length, and to
> tell it to honor existing newlines.
>
> But so far I've still only read the documentation, not tested it.
> It's not important enough for me...
Obviously. ;-)
Here's how the final version ended up...
emacs -batch -eval '(find-file "~/test")' -eval '(c-mode)' -eval
'(indent-region (point-min) (point-max) nil)' -eval '(save-buffer)'
-eval '(kill-buffer (current-buffer))'
Where '~/test' is the file that will be wrapped in place, keeping all
tokens on the line they started on. Note the '(c-mode)' in case the
file doesn't end in a c-program extension. And note the third argument
on indent-region, which I'm not entirely sure is necessary or not. But
it's working fine.
Thanks again for your help.
-Sanford
prev parent reply other threads:[~2003-05-07 3:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-05 0:36 M-x indent-region Sanford Selznick
2003-05-05 6:12 ` Kai Großjohann
2003-05-05 8:03 ` Alfred M. Szmidt
[not found] ` <mailman.5568.1052122245.21513.help-gnu-emacs@gnu.org>
2003-05-05 17:14 ` Sanford Selznick
2003-05-05 18:49 ` Kai Großjohann
2003-05-05 22:38 ` Sanford Selznick
2003-05-06 16:45 ` Kai Großjohann
2003-05-07 3:47 ` Sanford Selznick [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=see-message-7937D5.20473606052003@news.west.cox.net \
--to=see-message@for.real.address.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).