Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Emacs batch commands
- Date: Thu, 27 Jul 2006 20:08:19 +0900
- From: David Riggs <dariggs@example.com>
- Subject: Re: [tlug] Emacs batch commands
- References: <mailman.48.1153993730.2534.tlug@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050420 Debian/1.7.7-2
Stephen T: wrote:(insert "from batch") (save-buffer) (kill-buffer))'Emacs sees and visits them; it's your Lisp program that doesn't. emacs * -batch -eval '(while (> (length (buffer-list) 0)) \Naruhodo. So all those zillions of files are open/visited all at once! I thought emacs did a shell script pipeline style of opening one after another.So, what I really need to do is write the lisp code to intercept the command line arguments and open them one at a time?The elisp info says "The init file can access the values of the action arguments as the elements of a list in the variable `command-line-args'. The init file can override the normal processing of the action arguments, or define new ones, by reading and setting this variable."Or maybe just do this whole thing from emacs by going to a dir and then executing my little function.Thanks very much. I could not quite see what was happening. Now I see that its not really correct to approach things the way I was.David
- Follow-Ups:
- Re: [tlug] Emacs batch commands
- From: Junichi Uekawa
- Re: [tlug] Emacs batch commands
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] I'm a glutton for punishment - Palm Pilot and Ubuntu Dapper LTS connectivity [SOLVED]
- Next by Date: Re: [tlug] Video of the next meeting...
- Previous by thread: Re: [tlug] QUERY> Basic email list setup
- Next by thread: Re: [tlug] Emacs batch commands
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links