From: "Drew Adams" <drew.adams@oracle.com>
To: "'Decebal'" <CLDWesterhof@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Opening files from a command
Date: Sat, 1 Nov 2008 14:07:09 -0700 [thread overview]
Message-ID: <003d01c93c65$ce170b70$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <afa3a0df-246b-40c3-b1cb-b968c8dbde86@s9g2000prg.googlegroups.com>
> Sometimes I like to edit files based on a certain criterium. I use for
> example a grep command. I use this from a shell in Emacs. (I have to
> work with kshell, which does not have tab-expansion. This is why I am
> working from a shell in Emacs.) At this moment I am putting those
> filenames one by one in the kill-ring and open them. But is there a
> better way?
>
> Offcourse I could do:
> emacs `grep ...` &
> but this opens an new Emacs session. I would prefer not to open a new
> session.
Sorry, but I don't understand you. I'm sure someone else does and will give you
a good answer.
It sounds like you're saying that you have Emacs open, and you use `grep'
outside Emacs (or in an Emacs shell buffer), and you then add the names of
grepped files that you want to edit to the kill ring, and you then paste those
names from the kill ring to, e.g., C-x C-f in order to open the files. Is that
right?
It's probably not what you mean, but if it is, then my answer would be to use
the _Emacs_ command `grep': `M-x grep'. See the Emacs manual, node `Grep
Searching'. Unless you have a very special need that doesn't match what Emacs
`grep' gives you, you'll appreciate using it, and you'll never go back.
next prev parent reply other threads:[~2008-11-01 21:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-01 20:28 Opening files from a command Decebal
2008-11-01 20:57 ` Rupert Swarbrick
2008-11-03 11:25 ` Xavier Maillard
2008-11-03 16:51 ` Johan Bockgård
2008-11-03 23:25 ` Xavier Maillard
2008-11-01 21:07 ` Drew Adams [this message]
2008-11-01 21:20 ` Peter Dyballa
2008-11-01 23:26 ` Paul R
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='003d01c93c65$ce170b70$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=CLDWesterhof@gmail.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.