From: Reinhard Kotucha <reinhard.kotucha@web.de>
Cc: emacs-devel@gnu.org
Subject: Re: ! in Dired--what was the outcome?
Date: Fri, 15 Oct 2004 01:30:25 +0200 [thread overview]
Message-ID: <16751.3089.79455.136342@zarniwoop.ms25.local> (raw)
In-Reply-To: <m27jptvh6q.fsf@phoenix.squirrel.nl>
>>>>> "Johan" == Johan Vromans <jvromans@squirrel.nl> writes:
> Likewise, {} could be made available to 'shell-command' as well,
> to make it easy to run arbitrary commands on the file associated
> with the current buffer. For example C-x C-s M-! cp {} {}.save
> RET before starting to make possibly hazardous changes...
The example is quite special. It allows to append an extension, but
it disallows to remove one.
What I do very often in bash is
for file in *.ps ; do
convert $file ${file%%ps}pdf
done
Maybe your syntax can be extended, for instance like this:
convert {} {/ps$//}pdf
or
convert {} {/ps$/pdf/}
Using regexps is much more powerful than the substring approach in
bash anyway.
Regards,
Reinhard
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha@web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------
next prev parent reply other threads:[~2004-10-14 23:30 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-21 18:30 ! in Dired--what was the outcome? Richard Stallman
2004-09-21 19:48 ` Jose E. Marchesi
2004-09-22 1:44 ` Luc Teirlinck
2004-09-22 2:05 ` Luc Teirlinck
2004-10-03 1:19 ` Richard Stallman
2004-10-03 1:44 ` Juri Linkov
2004-10-04 15:18 ` Richard Stallman
2004-10-04 15:41 ` David Kastrup
2004-10-04 15:50 ` Stefan Monnier
2004-10-04 17:27 ` Luc Teirlinck
2004-10-04 2:43 ` Luc Teirlinck
2004-10-05 18:04 ` Richard Stallman
2004-10-06 23:03 ` Luc Teirlinck
2004-10-07 16:45 ` Richard Stallman
2004-10-12 15:12 ` Juri Linkov
2004-10-13 3:01 ` Luc Teirlinck
2004-10-13 8:40 ` David Kastrup
2004-10-14 0:43 ` Richard Stallman
2004-10-14 8:26 ` Johan Vromans
2004-10-14 9:45 ` Andreas Schwab
2004-10-14 9:56 ` Miles Bader
2004-10-14 16:37 ` Andreas Schwab
2004-10-15 10:08 ` Richard Stallman
2004-10-15 18:06 ` Juri Linkov
2004-10-16 13:52 ` Richard Stallman
2004-10-14 23:30 ` Reinhard Kotucha [this message]
2004-10-15 4:13 ` Miles Bader
2004-10-15 8:12 ` David Kastrup
2004-10-14 8:56 ` David Kastrup
2004-10-14 9:45 ` Kim F. Storm
2004-10-14 23:48 ` Reinhard Kotucha
2004-10-15 8:15 ` David Kastrup
2004-10-13 14:42 ` Richard Stallman
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=16751.3089.79455.136342@zarniwoop.ms25.local \
--to=reinhard.kotucha@web.de \
--cc=emacs-devel@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.