all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: Why can't I use xargs emacs?
Date: Thu, 11 Feb 2010 03:19:18 +0000 (UTC)	[thread overview]
Message-ID: <hkvsvm$9i5$1@reader2.panix.com> (raw)
In-Reply-To: Vufan.39557$BV.3195@newsfe07.iad

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




      parent reply	other threads:[~2010-02-11  3:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-02 20:22 Why can't I use xargs emacs? Adam Funk
2010-02-02 21:14 ` Bit Twister
2010-02-03 11:14   ` Andreas Röhler
2010-02-03 14:18   ` Adam Funk
2010-02-02 21:35 ` Bill Marcum
2010-02-03  7:23   ` Thierry Volpiatto
     [not found]   ` <mailman.634.1265182143.14305.help-gnu-emacs@gnu.org>
2010-02-03 14:21     ` Adam Funk
2010-02-06  7:45       ` Jorgen Grahn
2010-02-06 19:37         ` Adam Funk
2010-02-02 22:40 ` Pascal J. Bourguignon
2010-02-03  3:40   ` Ivan Shmakov
2010-02-02 22:56 ` Pascal J. Bourguignon
2010-02-02 23:51 ` Harald Hanche-Olsen
2010-02-03 14:12 ` hymie!
2010-02-03 14:20   ` Adam Funk
2010-02-03 16:19     ` Thierry Volpiatto
     [not found]     ` <mailman.645.1265214302.14305.help-gnu-emacs@gnu.org>
2010-02-03 21:15       ` Adam Funk
2010-02-04 12:08         ` Andreas Röhler
2010-02-11  3:19   ` David Combs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hkvsvm$9i5$1@reader2.panix.com' \
    --to=dkcombs@panix.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.