From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs 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 Organization: LINKOV.NET Message-ID: <87tvstwpl9.fsf@mail.linkov.net> References: <7ea429b5-b12e-4639-9d77-11db71504d9c@default> <87605g7xpj.fsf@mail.linkov.net> <70149736-0c90-4059-91d0-155144bf4abd@default> <87o9j6k5qx.fsf@mail.linkov.net> <8111e8b0-a7fb-4de4-9371-fd69c74c46e5@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522698855 9421 195.159.176.226 (2 Apr 2018 19:54:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 19:54:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 30938@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 02 21:54:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f35Ws-0002Kf-8c for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 21:54:10 +0200 Original-Received: from localhost ([::1]:59405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f35Yv-000192-SC for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 15:56:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f35Yj-000185-90 for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 15:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f35Yh-00069o-AN for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 15:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f35Yh-00069i-6k for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 15:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f35Yg-0003mt-Rg for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Apr 2018 19:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30938 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30938-submit@debbugs.gnu.org id=B30938.152269893914483 (code B ref 30938); Mon, 02 Apr 2018 19:56:02 +0000 Original-Received: (at 30938) by debbugs.gnu.org; 2 Apr 2018 19:55:39 +0000 Original-Received: from localhost ([127.0.0.1]:35419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f35YJ-0003lW-BH for submit@debbugs.gnu.org; Mon, 02 Apr 2018 15:55:39 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:36402 helo=homiemail-a11.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f35YI-0003lO-Ef for 30938@debbugs.gnu.org; Mon, 02 Apr 2018 15:55:38 -0400 Original-Received: from homiemail-a11.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTP id 3F496314C069; Mon, 2 Apr 2018 12:55:37 -0700 (PDT) Original-Received: from localhost.linkov.net (m91-129-105-236.cust.tele2.ee [91.129.105.236]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPSA id 629C6314C066; Mon, 2 Apr 2018 12:55:36 -0700 (PDT) In-Reply-To: <8111e8b0-a7fb-4de4-9371-fd69c74c46e5@default> (Drew Adams's message of "Thu, 29 Mar 2018 21:01:44 -0700 (PDT)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144804 Archived-At: > 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))