diff options
| author | Gerd Moellmann | 1999-12-06 16:44:28 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-12-06 16:44:28 +0000 |
| commit | d984dbc116c66860123a7d431213a80998d3ca6e (patch) | |
| tree | 3ef66738c5ddb91187348c3528342e02bf9773c0 | |
| parent | 32fd7972629ec6752b4ac0f465915cc60d85e8ae (diff) | |
| download | emacs-d984dbc116c66860123a7d431213a80998d3ca6e.tar.gz emacs-d984dbc116c66860123a7d431213a80998d3ca6e.zip | |
(dired-do-shell-command): Changed documentation.
(dired-shell-stuff-it): A `?' in COMMAND has now the same
meaning as `*'.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 20 |
2 files changed, 20 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fd03530ffc4..ebe88cb4b31 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 1999-12-06 Inge Frick <inge@nada.kth.se> | ||
| 2 | |||
| 3 | * dired-aux.el (dired-do-shell-command): Changed documentation. | ||
| 4 | (dired-shell-stuff-it): A `?' in COMMAND has now the same | ||
| 5 | meaning as `*'. | ||
| 6 | |||
| 1 | 1999-12-06 Gerd Moellmann <gerd@gnu.org> | 7 | 1999-12-06 Gerd Moellmann <gerd@gnu.org> |
| 2 | 8 | ||
| 3 | * simple.el (insert-buffer): Doc fix. | 9 | * simple.el (insert-buffer): Doc fix. |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index e9fe84a9ec3..b4ea496eceb 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -319,6 +319,10 @@ Normally the command is run on each file individually. | |||
| 319 | However, if there is a `*' in the command then it is run | 319 | However, if there is a `*' in the command then it is run |
| 320 | just once with the entire file list substituted there. | 320 | just once with the entire file list substituted there. |
| 321 | 321 | ||
| 322 | If there is no `*', but a `?' in the command then it is still run | ||
| 323 | on each file individually but with the filename substituted there | ||
| 324 | instead of att the end of the command. | ||
| 325 | |||
| 322 | No automatic redisplay of dired buffers is attempted, as there's no | 326 | No automatic redisplay of dired buffers is attempted, as there's no |
| 323 | telling what files the command may have changed. Type | 327 | telling what files the command may have changed. Type |
| 324 | \\[dired-do-redisplay] to redisplay the marked files. | 328 | \\[dired-do-redisplay] to redisplay the marked files. |
| @@ -370,13 +374,17 @@ the list of file names explicitly with the FILE-LIST argument." | |||
| 370 | ;; (coming from interactive P and currently ignored) to decide what to do. | 374 | ;; (coming from interactive P and currently ignored) to decide what to do. |
| 371 | ;; Smart would be a way to access basename or extension of file names. | 375 | ;; Smart would be a way to access basename or extension of file names. |
| 372 | ;; See dired-trns.el for an approach to this. | 376 | ;; See dired-trns.el for an approach to this. |
| 373 | ;; Bug: There is no way to quote a * | 377 | ;; Bug: There is no way to quote a * or a ? |
| 374 | ;; On the other hand, you can never accidentally get a * into your cmd. | 378 | ;; On the other hand, you can never accidentally get a * or a ? into |
| 379 | ;; your cmd. | ||
| 375 | (let ((stuff-it | 380 | (let ((stuff-it |
| 376 | (if (string-match "\\*" command) | 381 | (cond ((string-match "\\*" command) |
| 377 | (function (lambda (x) | 382 | (function (lambda (x) |
| 378 | (dired-replace-in-string "\\*" x command))) | 383 | (dired-replace-in-string "\\*" x command)))) |
| 379 | (function (lambda (x) (concat command " " x)))))) | 384 | ((string-match "\\?" command) |
| 385 | (function (lambda (x) | ||
| 386 | (dired-replace-in-string "\\?" x command)))) | ||
| 387 | (t (function (lambda (x) (concat command " " x))))))) | ||
| 380 | (if on-each | 388 | (if on-each |
| 381 | (mapconcat stuff-it (mapcar 'shell-quote-argument file-list) ";") | 389 | (mapconcat stuff-it (mapcar 'shell-quote-argument file-list) ";") |
| 382 | (let ((fns (mapconcat 'shell-quote-argument | 390 | (let ((fns (mapconcat 'shell-quote-argument |