unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Arnaldo Mandel <am@ime.usp.br>
To: help-gnu-emacs@gnu.org
Subject: RE: emacs equivalent of vi %
Date: Wed, 13 Aug 2008 08:37:18 -0300	[thread overview]
Message-ID: <18594.51054.16986.161383@gargle.gargle.HOWL> (raw)
In-Reply-To: <f46c52560808122352s57411d83o41fbb3e012b5a22b@mail.gmail.com>

Rustom Mody wrote (on Aug 13, 2008):
 > In vi one can do, for example,
 > :!gcc %
 > and the current file gets compiled -- ingeneral :
 > :!someCommand options % otherStuff
 > and the filename gets interpolated.
 > Is there any way to get the '%' behavior in emacs?
 > [Note: I know about compile; I am asking a more general question about
 > getting the filename]

See

   shell-command-on-region

or, better yet,

   shell-command-with-completion-on-region

-- 
Arnaldo Mandel                        
Departamento de Ciência da Computação - Computer Science Department
Universidade de São Paulo, Bra[sz]il	  
am@ime.usp.br
Talvez você seja um Bright http://the-brights.net Maybe you are a Bright.




  parent reply	other threads:[~2008-08-13 11:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-13  6:52 emacs equivalent of vi % Rustom Mody
2008-08-13  9:34 ` Lennart Borgman (gmail)
2008-08-13 10:44   ` Rustom Mody
2008-08-13 11:10     ` Lennart Borgman (gmail)
2008-08-13 13:24       ` Rustom Mody
2008-08-13 23:27         ` Nikolaj Schumacher
2008-08-13 23:50           ` Nikolaj Schumacher
2008-08-14  0:14             ` Lennart Borgman (gmail)
2008-08-14  2:04               ` Kevin Rodgers
2008-08-14  7:13               ` Rustom Mody
2008-08-14 10:01                 ` Lennart Borgman (gmail)
2008-08-15  1:38                 ` Kevin Rodgers
     [not found]           ` <mailman.16634.1218671422.18990.help-gnu-emacs@gnu.org>
2008-08-14  2:51             ` Jason Rumney
2008-08-13 11:37 ` Arnaldo Mandel [this message]
     [not found] <mailman.16547.1218610362.18990.help-gnu-emacs@gnu.org>
2008-08-13 15:14 ` Xah
2008-08-13 17:24 ` Scott Frazer
  -- strict thread matches above, loose matches on Subject: below --
2008-08-15 17:02 Emmett Grogan
     [not found] <mailman.16820.1218819789.18990.help-gnu-emacs@gnu.org>
2008-08-15 19:13 ` Xah
2008-08-16  0:14 ` Chat

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=18594.51054.16986.161383@gargle.gargle.HOWL \
    --to=am@ime.usp.br \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).