From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: Why can't I use xargs emacs? Date: Thu, 11 Feb 2010 03:19:18 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1265859671 16526 80.91.229.12 (11 Feb 2010 03:41:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2010 03:41:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 11 04:40:49 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NfPv5-0001Xq-VY for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Feb 2010 04:40:48 +0100 Original-Received: from localhost ([127.0.0.1]:32940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfPv5-0001Xe-EU for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 22:40:47 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: comp.unix.shell,gnu.emacs.help Original-Lines: 72 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader2.panix.com 1265858358 9797 166.84.1.1 (11 Feb 2010 03:19:18 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 11 Feb 2010 03:19:18 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: news.stanford.edu comp.unix.shell:233948 gnu.emacs.help:176714 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71788 Archived-At: In article , hymie! wrote: >In our last episode, the evil Dr. Lacto had captured our hero, > Adam Funk , who said: >> >> >>The emacs command can take a list of filename arguments, so why can't >>I get xargs to work with it? >> >>$ find -name '*.txt' |xargs emacs -nw >>emacs: standard input is not a tty > >Are you missing the . in your find command on purpose? > >What's wrong with >emacs -nw `find . -name '*.txt'` >? > >--hymie! http://lactose.homelinux.net/~hymie hymie@lactose.homelinux.net >------------------------------------------------------------------------------- Am puzzled. Before the above answer, you're running emacs once per file. I'd imagine it takes FAR more time to get an emacs run going that whatever you're going to do to that single file once emacs is running. My question: exactly what are you doing to or with that file inside emacs? Whatever that is, will you be doing it via your own fingers -- you know, editing, etc. Or will emacs automatically run some (emacs) script on it -- the same script on each file ie on each emacs-run? Unless emacs is doing something that only emacs can do that eg vim etc cannot do, seems to me that you're using a sledgehammer -- nay, a piledriver -- to kill an ant. I don't know about what others do, but when I run emacs, I typically run it ONCE, and then "live" inside it for an hour, a day, or more likely for several days, until I take down the computer. So, please, just what are you doing WITHIN emacs -- ie, once it's read in one of those many files you're dealing with? Thanks! David ----- FYI: If you want to run emacs on windows, run "NTemacs" (google it); in my experience, it works VASTLY better than the regular emacs compiled for windows. In fact, with ntemacs, I can't tell the difference between when I'm using it on windows (xp) or solaris (sparc). Oh, the "nt" prefix. My guess is that windows was so crappy until finally MS came out with NT, so they named emacs for that NTemacs, and the name remained for 2k, xp, etc. David