From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs 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) Message-ID: References: <7ea429b5-b12e-4639-9d77-11db71504d9c@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1521996309 3064 195.159.176.226 (25 Mar 2018 16:45:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2018 16:45:09 +0000 (UTC) To: 30938@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 25 18:45:05 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 1f08lU-0000gU-Cm for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Mar 2018 18:45:04 +0200 Original-Received: from localhost ([::1]:51903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f08nX-0004Sm-Ja for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Mar 2018 12:47:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f08nR-0004SO-8h for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 12:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f08nO-0003xr-1v for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 12:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f08nN-0003xj-Tz for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 12:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f08nN-0004A2-NO for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 12:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Mar 2018 16:47:01 +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.152199636715931 (code B ref 30938); Sun, 25 Mar 2018 16:47:01 +0000 Original-Received: (at 30938) by debbugs.gnu.org; 25 Mar 2018 16:46:07 +0000 Original-Received: from localhost ([127.0.0.1]:53135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f08mV-00048s-Is for submit@debbugs.gnu.org; Sun, 25 Mar 2018 12:46:07 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:53622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f08mT-000489-Iz for 30938@debbugs.gnu.org; Sun, 25 Mar 2018 12:46:05 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2PGUjMQ047211 for <30938@debbugs.gnu.org>; Sun, 25 Mar 2018 16:45:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=oGbTxby5gSQUo86eZWo6RtaYeDABqVXelW1zk3P3Uhg=; b=QYR7AiVwMgmFqaSRZW2V21X+7b3rkcooOtAD1I4fX0wdgZGtZvPY5qFaJx1wR92cv38B qv1D3oC3mZfvZ61Rm32JYh75JKHlHox/zbnOoNpPn12iUMDej1na/8IPhD7rwUZ5Qlco GWbudqio3VTcV8C+SVVRZ1UdEHMFDYxdsKt1IkeLxfQ4aElAGJEoFS5LfEuliJzVkOKS 9z16dvl5H5Nb8wlag5XrEfHs8M3FdoYPqY05+gLTPcfe8rOULalW3Q1yku3IHOCtCp3Y 20uvlWeI8bTP7Qrs0splp0K8/TYZ9Ix8BLtWXD48XCpOYZ4WfydenpnVsGKBZB29BUDU oQ== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2gxf5r01fv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <30938@debbugs.gnu.org>; Sun, 25 Mar 2018 16:45:59 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2PGjwoU021192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <30938@debbugs.gnu.org>; Sun, 25 Mar 2018 16:45:58 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2PGjvO2007019 for <30938@debbugs.gnu.org>; Sun, 25 Mar 2018 16:45:58 GMT In-Reply-To: <7ea429b5-b12e-4639-9d77-11db71504d9c@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8843 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=13 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=506 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803250197 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:144603 Archived-At: 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)))