[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30938: 27.0; `dired-do-create-files' etc.: do NOT always raise error
From: |
Juri Linkov |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
> 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#30938: 27.0; `dired-do-create-files' etc.: do NOT always raise error if no files,
Juri Linkov <=