From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24150: 26.0.50; New command: dired-create-empty-file Date: Wed, 01 Aug 2018 11:56:49 +0300 Message-ID: <83600uo46m.fsf@gnu.org> References: <87mv8m3yya.fsf@calancha-pc> <83wp7mn3go.fsf@gnu.org> <97b67d5a-fc1e-47ea-b6b1-4154206ed5f9@default> <87bmbfwp4x.fsf@calancha-pc.dy.bbexcite.jp> <879bc31155c8718745f44321382e9ecb@webmail.orcon.net.nz> <87lgaa9uq8.fsf@calancha-pc.dy.bbexcite.jp> <83pnzi1dpy.fsf@gnu.org> <87va9661uy.fsf@calancha-pc.dy.bbexcite.jp> <83r2jprs1h.fsf@gnu.org> <87effk1065.fsf@calancha-pc.dy.bbexcite.jp> <83tvofnzq3.fsf@gnu.org> <87o9emoed5.fsf@calancha-pc.dy.bbexcite.jp> <83bmamob8y.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1533113707 5462 195.159.176.226 (1 Aug 2018 08:55:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2018 08:55:07 +0000 (UTC) Cc: psainty@orcon.net.nz, tzz@lifelogs.com, clement.pit@gmail.com, michael.albinus@gmx.de, 24150@debbugs.gnu.org, sdl.web@gmail.com To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 10:55:02 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 1fkmuM-0001I4-IF for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 10:55:02 +0200 Original-Received: from localhost ([::1]:34103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkmwT-0006Yx-9A for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 04:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkmwM-0006Yh-JL for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 04:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkmwI-0007WW-Mk for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 04:57:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60151) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkmwI-0007WS-II for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 04:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkmwI-0004kR-BL for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 04:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Aug 2018 08:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24150 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24150-submit@debbugs.gnu.org id=B24150.153311381318236 (code B ref 24150); Wed, 01 Aug 2018 08:57:02 +0000 Original-Received: (at 24150) by debbugs.gnu.org; 1 Aug 2018 08:56:53 +0000 Original-Received: from localhost ([127.0.0.1]:36936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkmw9-0004k4-JI for submit@debbugs.gnu.org; Wed, 01 Aug 2018 04:56:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkmw7-0004jn-DQ for 24150@debbugs.gnu.org; Wed, 01 Aug 2018 04:56:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkmw1-0007S1-B1 for 24150@debbugs.gnu.org; Wed, 01 Aug 2018 04:56:46 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkmvw-0007Qg-As; Wed, 01 Aug 2018 04:56:40 -0400 Original-Received: from [176.228.60.248] (port=3579 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fkmvv-0004Qe-Dl; Wed, 01 Aug 2018 04:56:39 -0400 In-reply-to: (message from Tino Calancha on Wed, 1 Aug 2018 16:13:52 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:149153 Archived-At: > From: Tino Calancha > Date: Wed, 1 Aug 2018 16:13:52 +0900 (JST) > cc: Tino Calancha , psainty@orcon.net.nz, > tzz@lifelogs.com, clement.pit@gmail.com, michael.albinus@gmx.de, > 24150@debbugs.gnu.org, sdl.web@gmail.com > > > I think the doc strings do need to say that the file name is > > added/modified in the Dired buffer, but that's a separate issue. > > Maybe to make the doc string of dired-create-empty-file hint at that, > > instead "create empty file" say something like "add an empty file to > > the current directory"? > That could suggest that we just add an entry in Dired (not writing to > disk). No, I don't think so: "add a file to a directory" doesn't mention Dired at all. But if it confused you, maybe others could be confused as well. > How about following two (first with long forst line, second split it in > 2): > > "Create an empty file called FILE, add a new entry for it in the Dired > buffer. > Parent directories of FILE are created as needed. > If FILE already exists, signal an error." > > > "Create an empty file called FILE. > Add a new entry for it in the Dired buffer. > Parent directories of FILE are created as needed. > If FILE already exists, signal an error." The second one is better, IMO. But instead of "it", I'd say "the new file" or "the created file". Thanks.