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: Juri Linkov <juri <at> linkov.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 30938 <at> debbugs.gnu.org
Subject: bug#30938: 27.0; `dired-do-create-files' etc.: do NOT always raise error if no files
Date: Mon, 02 Apr 2018 22:30:50 +0300
> I'm open to other ways to do what is needed, if they
> are better.  Feel free to propose something.

I still don't see why raising the error should depend on command's
interactivity, i.e. why these commands should not signal a user-error
in the non-interactive case.

We have thousands calls of such core functions as
(search-forward STRING &optional BOUND NOERROR COUNT)
and none of them binds the NOERROR arg to the command INTERACTIVE arg.
That's because it would make the control flow unmanageable in
a chain of commands, i.e. when a command that invokes a command
that invokes such core functions.

In very rare cases when you absolutely need to ignore errors,
just use (ignore-errors (dired-do-chmod))




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.