GNU bug report logs -
#10598
24.0.92; run dired-do-async-shell-command on multiple files individually
Previous Next
Reported by: "Roland Winkler" <winkler <at> gnu.org>
Date: Wed, 25 Jan 2012 10:19:01 UTC
Severity: normal
Merged with 11815
Found in versions 24.0.92, 24.1
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
Message #36 received at 10598 <at> debbugs.gnu.org (full text, mbox):
On Sat Jul 14 2012 Juri Linkov wrote:
> A good UI to select the desired behavior before the command invocation
> is to use a prefix argument. A comment in `dired-shell-stuff-it'
> says:
...much agreed -- if these had not already established their own
usage of the prefix arg. The command dired-do-async-shell-command
uses the prefix arg like dired-do-shell-command, that is, the prefix
arg is one method (besides the mark) to determine the file list the
shell commands will work on. Changing this established behavior for
dired-do-async-shell-command (while possibly keeping the current
behavior for dired-do-shell-command) is probably confusing.
> ;; Might be redefined for smarter things and could then use RAW-ARG
> ;; (coming from interactive P and currently ignored) to decide what to do.
> ;; Smart would be a way to access basename or extension of file names.
>
> I don't know how it was intended to be implemented a smart way, but
> maybe the same could be used to specify how to run dired async commands?
I guess that this can only refer to the handling of file arguments,
but the prefix cannot be used (anymore) for a completely different
purpose.
Currently the COMMAND arg knows three special characters, *. ?, and
&. How about a fourth character ";"? More specifically:
& means: run asynchronously, separating with &
; means: run asynchronously, separating with ;
I believe this should not break too much backward compatibility
because ; normally needs to be protected anyway.
Then & becomes the default of dired-do-async-shell-command. Anyway,
& is appended only if it is not yet present.
Or am I missing something? Would this break something?
This bug report was last modified 12 years and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.