GNU bug report logs - #30938
27.0; `dired-do-create-files' etc.: do NOT always raise error if no files

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 25 Mar 2018 16:37:01 UTC

Severity: minor

Found in version 27.0

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: 30938 <at> debbugs.gnu.org
Subject: bug#30938: 27.0; `dired-do-create-files' etc.: do NOT always raise error if no files
Date: Sun, 25 Mar 2018 09:45:57 -0700 (PDT)
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)))




This bug report was last modified 3 years and 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.