|
From: | Juri Linkov |
Subject: | bug#30938: 27.0; `dired-do-create-files' etc.: do NOT always raise error if no files |
Date: | Wed, 28 Mar 2018 23:27:04 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
> For example, `dired-do-isearch' could be called non-interactively > in a context where it should do nothing (or something else should > be done) if there are no marked files. Something like this is > better: > > (defun dired-do-isearch (&optional interactivep) > "Search for a string through all marked files using Isearch. > When invoked interactively, raise an error if no files are marked." > (interactive "p") > (multi-isearch-files > (dired-get-marked-files > nil nil 'dired-nondirectory-p nil interactivep))) Is there a better way than doing the same by adding such a formal arg to all 12 affected commands?
[Prev in Thread] | Current Thread | [Next in Thread] |