[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: command-line emacs tops out at 16384?
From: |
Kevin Rodgers |
Subject: |
Re: command-line emacs tops out at 16384? |
Date: |
Tue, 01 Jul 2003 11:34:06 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Harry Putnam wrote:
Kevin, I haven't been following here but this caught my attention as
a potentially usefull piece of command line syntax. Not sure what
the application here was supposed to be. Can it be aimed at an
existing file that is unformatted and the end result will be that
it is formatted and saved?
That's the basic idea, yes.
If so, how might that be made to handle a lisp file?
I tried:
emacs -q -no-site-file -batch \
"/tmp/my_gnus.el" -f lisp-mode \
-eval '(indent-region (point-min) (point-max) nil)' \
-f save-buffer
I think you mean emacs-lisp-mode instead of lisp-mode (which shouldn't be
necessary, given the .el extension and the default value of auto-mode-alist).
Also, -batch already implies -q.
OUTPUT
(No changes need to be saved)
And the file is unchanged. See attached file for the code I ran it
against.
Maybe it's because the file is actually called my_gnus_init.el (not my_gnus.el).
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>