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#24150: 25.1.50; New command: dired-create-empty-file Date: Thu, 4 Aug 2016 10:29:21 -0700 (PDT) Message-ID: <10da683c-767f-40cf-bef9-ba7f6b6740ea@default> References: <87d1locv97.fsf@lifelogs.com> 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 1470331933 9649 195.159.176.226 (4 Aug 2016 17:32:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2016 17:32:13 +0000 (UTC) Cc: 24150@debbugs.gnu.org To: Ted Zlatanov , Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 04 19:32:07 2016 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 1bVMTK-0006r4-60 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Aug 2016 19:30:18 +0200 Original-Received: from localhost ([::1]:41071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVMTG-0000Wy-FK for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Aug 2016 13:30:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVMT9-0000UW-Md for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2016 13:30:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVMT5-0006ru-HZ for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2016 13:30:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVMT5-0006rQ-Db for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2016 13:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bVMT4-00078F-Tb for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2016 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Aug 2016 17:30: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.147033177327356 (code B ref 24150); Thu, 04 Aug 2016 17:30:02 +0000 Original-Received: (at 24150) by debbugs.gnu.org; 4 Aug 2016 17:29:33 +0000 Original-Received: from localhost ([127.0.0.1]:55853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVMSb-00077A-5a for submit@debbugs.gnu.org; Thu, 04 Aug 2016 13:29:33 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:31626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVMSZ-00076y-Sj for 24150@debbugs.gnu.org; Thu, 04 Aug 2016 13:29:32 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u74HTPVw027786 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 4 Aug 2016 17:29:25 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u74HTO3w011341 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 4 Aug 2016 17:29:25 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u74HTN7l014262; Thu, 4 Aug 2016 17:29:23 GMT In-Reply-To: <87d1locv97.fsf@lifelogs.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] 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:121835 Archived-At: > I use dired+ and find `diredp-touch-this-file' useful sometimes. It > might be handy to have that available, with filename prompting, in the > core dired. But it's not a high-frequency command for me. Vanilla Emacs has `dired-do-touch', which is bound to `T' by default. Dired+ defines `diredp-touch-this-file', which just does `dired-do-touch' on the file of the current line: (dired-do-touch 1). Just `T', with no files marked, gives you the same behavior as `diredp-touch-this-file'. The latter is a separate command because it lets you touch (just) the current file regardless of whether some files are marked. Wrt this thread: The Dired touch commands are useful mainly for updating the file-modified date. But they do not read a file name, so they cannot be used to create a new, empty file. I'm not sure what the use cases are for creating a new, empty file, but I don't think that using a touch command on any file listed in Dired has the effect of creating another, new file. You can use `M-!' to run a `touch' operating-system command, of course, but Dired does not currently offer anything for this, AFAIK.