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: Fri, 20 Jul 2018 12:03:05 +0300 Message-ID: <83pnzi1dpy.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> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1532077327 20882 195.159.176.226 (20 Jul 2018 09:02:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2018 09:02:07 +0000 (UTC) Cc: bug-gnu-emacs-bounces+psainty=orcon.net.nz@gnu.org, tino.calancha@gmail.com, 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 Fri Jul 20 11:02: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 1fgRIX-0005Gx-Iq for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jul 2018 11:02:01 +0200 Original-Received: from localhost ([::1]:47073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgRKe-0000k7-Fe for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jul 2018 05:04:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgRKX-0000jn-SN for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 05:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgRKU-0007dk-ON for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 05:04:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43769) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgRKU-0007de-Id for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 05:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fgRKU-0005rf-7G for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 05:04: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: Fri, 20 Jul 2018 09:04: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.153207739922491 (code B ref 24150); Fri, 20 Jul 2018 09:04:02 +0000 Original-Received: (at 24150) by debbugs.gnu.org; 20 Jul 2018 09:03:19 +0000 Original-Received: from localhost ([127.0.0.1]:48787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgRJm-0005qh-Ne for submit@debbugs.gnu.org; Fri, 20 Jul 2018 05:03:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgRJl-0005qV-Kf for 24150@debbugs.gnu.org; Fri, 20 Jul 2018 05:03:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgRJf-0007Q5-LI for 24150@debbugs.gnu.org; Fri, 20 Jul 2018 05:03:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgRJb-0007PI-AT; Fri, 20 Jul 2018 05:03:07 -0400 Original-Received: from [176.228.60.248] (port=2250 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fgRJa-0004XL-QL; Fri, 20 Jul 2018 05:03:07 -0400 In-reply-to: <87lgaa9uq8.fsf@calancha-pc.dy.bbexcite.jp> (message from Tino Calancha on Tue, 17 Jul 2018 16:39:27 +0900) 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:148712 Archived-At: > From: Tino Calancha > Date: Tue, 17 Jul 2018 16:39:27 +0900 > Cc: bug-gnu-emacs , > tino.calancha@gmail.com, tzz@lifelogs.com, clement.pit@gmail.com, > Michael Albinus , 24150@debbugs.gnu.org, > sdl.web@gmail.com > > At this stage, I am happy to focus the discussion on the acceptance > of the command itself. I think we all agree that such a command would be a good feature. As for your (Tino's) patch, I was somewhat surprised to see how much code you needed. We have the capability of creating parent directories in 'make-directory', so I thought all we'd need for creating a new file is this two-step dance: . call make-directory to maybe create the file's parent directory . call write-region to create the file itself What did I miss that needs so many lines of code? The advantage of the above seems to be that we don't need any refactoring to create the internal make--empty-file-or-directory function. Also, once we settle on the implementation, please don't forget NEWS and the manuals. Thanks.