From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: command-line emacs tops out at 16384? Date: Mon, 30 Jun 2003 23:43:06 -0700 Organization: Still searching... Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3F006B9B.7050803@yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1057042074 30780 80.91.224.249 (1 Jul 2003 06:47:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2003 06:47:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 01 08:47:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19XEvO-0007z7-00 for ; Tue, 01 Jul 2003 08:47:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19XEte-0003lK-9Q for gnu-help-gnu-emacs@m.gmane.org; Tue, 01 Jul 2003 02:45:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19XEsj-0003Nj-J3 for help-gnu-emacs@gnu.org; Tue, 01 Jul 2003 02:44:49 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19XErT-0002vm-7D for help-gnu-emacs@gnu.org; Tue, 01 Jul 2003 02:43:32 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19XEr8-0002sQ-Pc for help-gnu-emacs@gnu.org; Tue, 01 Jul 2003 02:43:10 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19XEqe-0007km-00 for ; Tue, 01 Jul 2003 08:42:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19XEqd-0007kb-00 for ; Tue, 01 Jul 2003 08:42:39 +0200 Original-Lines: 80 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:3AiM2xWa9FXGt7LF6QtPtRKcEYI= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11361 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11361 --=-=-= Kevin Rodgers writes: > I can't answer your question, but just want to point out that can be > > simplified: > > emacs --batch \ > "/tmp/test" \ > -f c-mode \ > --eval '(indent-region (point-min) (point-max) nil)' \ > -f save-buffer 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? 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 >>> OUTPUT (No changes need to be saved) And the file is unchanged. See attached file for the code I ran it against. --=-=-= Content-Disposition: attachment; filename=my_gnus_init.el Content-Description: lisp file (add-to-list 'load-path "/usr/local/gnus/lisp") (setq gnus-init-file "/tmp/my_gnus_init.el") (load-library "gnus") (message gnus-version) (setq mail-user-agent 'gnus-user-agent) ;;;batch:76:/home/reader/.gnus (setq max-lisp-eval-depth 2000) ;;;batch:80:/home/reader/.gnus (setq message-syntax-checks ;;;batch:81:/home/reader/.gnus '((sender . disabled))) ;;;batch:82:/home/reader/.gnus (defun message-make-fqdn () ;;;batch:84:/home/reader/.gnus "My hacked message-id." ;;;batch:85:/home/reader/.gnus "newsguy.com") ;;;batch:86:/home/reader/.gnus (setq gnus-expert-user t) ;;;batch:95:/home/reader/.gnus (setq gnus-agent-short-article 50) ;;;batch:96:/home/reader/.gnus (setq gnus-use-adaptive-scoring nil) ;;;batch:152:/home/reader/.gnus (setq mail-sources ;;;batch:159:/home/reader/.gnus '((file :path "/var/spool/mail/reader") ;;;batch:160:/home/reader/.gnus (directory :path "/home/reader/spool/" :suffix ".in"))) ;;;batch:161:/home/reader/.gnus (setq gnus-extra-headers ;;;batch:164:/home/reader/.gnus '(To Newsgroups Keywords )) ;;;batch:165:/home/reader/.gnus (setq nnmail-extra-headers gnus-extra-headers) ;;;batch:166:/home/reader/.gnus (setq gnus-ignored-from-addresses ;;;batch:167:/home/reader/.gnus "Harry Putnam") ;;;batch:168:/home/reader/.gnus (setq message-user-organization "Still searching...") ;;;batch:171:/home/reader/.gnus (setq gnus-select-method '(nntp "enews.newsguy.com")) ;;;batch:172:/home/reader/.gnus (setq user-mail-address "reader@newsguy.com") ;;;batch:175:/home/reader/.gnus (setq gnus-check-new-newsgroups 'ask-server) ;;;batch:183:/home/reader/.gnus (setq gnus-agent-handle-level 3) ;;;batch:186:/home/reader/.gnus (setq gnus-activate-foreign-newsgroups 3) ;;;batch:187:/home/reader/.gnus (setq mail-source-delete-incoming t) ;;;batch:188:/home/reader/.gnus (setq gnus-use-long-file-name t) ;;;batch:189:/home/reader/.gnus (setq nnmail-crosspost nil) ;;;batch:190:/home/reader/.gnus (setq gnus-secondary-select-methods ;;;batch:194:/home/reader/.gnus '((nnml ""))) ;;;batch:195:/home/reader/.gnus (setq nnmail-split-methods ;;;batch:197:/home/reader/.gnus '(("tests" "^Subject:.*test.*labridge") ;;;batch:198:/home/reader/.gnus ("Edited" "^Subject: \\[ed\\]\\|^Subject: \\[ed\\]") ;;;batch:199:/home/reader/.gnus ("misc" ""))) ;;;batch:200:/home/reader/.gnus (setq user-mail-address "reader@newsguy.com") ;;;batch:120:/home/reader/.emacs (setq message-syntax-checks '((sender . disabled))) ;;;batch:121:/home/reader/.emacs --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnu-emacs --=-=-=--