[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Substitute ? in dired without surrounding whitespace
From: |
Juri Linkov |
Subject: |
Re: Substitute ? in dired without surrounding whitespace |
Date: |
Sun, 18 Nov 2007 01:57:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
> that gets translated to the dired's file name placeholder as
>
> display 'jpeg:?'
>
> but dired doesn't substitute it with a file name because ? is not
> surrounded by whitespace. This dired's limitation applies also
> to manually typing such a command line, not only by selecting it
> from a list of mailcap commands.
>
> Does there exist a way to tell dired to substitute a file name placeholder
> without surrounding whitespace?
>
> One solution is to set a shell variable. Does this work?
>
> for file in * ; do display "jpeg:$file"; done
Yes, this works. But this command line is to complicated and
inconvenient to edit for users. And I'm not sure is it sufficiently
portable to different systems.
The goal was to run the command returned by mailcap in the format:
display 'jpeg:%s'
where "%s" is intended to be replaced by the file name in the programs
that read mailcap entries.
So perhaps we could change Dired to accept this format and to replace %s
(regardless of surrounding whitespace) with the file name.
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Minibuffer default values list, Juri Linkov, 2007/11/11
- Re: Minibuffer default values list, Juri Linkov, 2007/11/18
- Re: Minibuffer default values list, Richard Stallman, 2007/11/21
- Re: Minibuffer default values list, Juri Linkov, 2007/11/22
- Re: Minibuffer default values list, Richard Stallman, 2007/11/22
- Re: Minibuffer default values list, Juri Linkov, 2007/11/24
- Re: Minibuffer default values list, Richard Stallman, 2007/11/24
- mb-pos.el (was: Minibuffer default values list), Juri Linkov, 2007/11/25
- Subject: mb-depth.el (was: Minibuffer default values list), Juri Linkov, 2007/11/25
- Re: Minibuffer default values list, Richard Stallman, 2007/11/22