🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4090

Re: Why can't I use xargs emacs?

#4090
From: David Combs
Date: Thu, 11 Feb 2010 03:19
70 lines
3204 bytes
In article <Vufan.39557$BV.3195@newsfe07.iad>,
hymie! <hymie@lactose.homelinux.net> wrote:
>In our last episode, the evil Dr. Lacto had captured our hero,
>  Adam Funk <a24061@ducksburg.com>, 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
Technical Details
Message-ID: <hkvsvm$9i5$1@reader2.panix.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail
References: <p4em37xiau.ln2@news.ducksburg.com> <Vufan.39557$BV.3195@newsfe07.iad>

Show Full Headers
Complete Article Headers
X-Google-Thread: 39ae015015,546aec423372e37b
X-Google-Attributes: gid39ae015015,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail
From: dkcombs@panix.com (David Combs)
Newsgroups: comp.unix.shell,gnu.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.
Lines: 72
Message-ID: <hkvsvm$9i5$1@reader2.panix.com>
References: <p4em37xiau.ln2@news.ducksburg.com> <Vufan.39557$BV.3195@newsfe07.iad>
NNTP-Posting-Host: panix1.panix.com
X-Trace: reader2.panix.com 1265858358 9797 166.84.1.1 (11 Feb 2010 03:19:18 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Thu, 11 Feb 2010 03:19:18 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)