From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Friendlier dired experience [CODE INCLUDED] Date: Tue, 3 Nov 2020 19:10:50 +0300 Message-ID: References: <20201103104340.q34kqfita55w2u7h@E15-2016.optimum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3476"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ (1036f0e) (2020-10-18) Cc: Boruch Baum , Emacs-Devel List To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 03 17:11:41 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZyuK-0000nt-OU for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Nov 2020 17:11:40 +0100 Original-Received: from localhost ([::1]:42792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZyuJ-0005ua-QC for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Nov 2020 11:11:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZytg-00055y-HL for emacs-devel@gnu.org; Tue, 03 Nov 2020 11:11:00 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:53425) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZyte-0006MH-Ky for emacs-devel@gnu.org; Tue, 03 Nov 2020 11:11:00 -0500 Original-Received: from localhost ([::ffff:41.210.145.80]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002A0B40.000000005FA18110.000011E8; Tue, 03 Nov 2020 16:10:56 +0000 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 08:34:00 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258648 Archived-At: * Stefan Kangas [2020-11-03 18:34]: > Boruch Baum writes: > > > I've just published an elisp package that extends and configures > > dired-mode with features that many people have come to take for granted > > in other programming languages. For the source code and the detailed > > description, see: http://github.com/Boruch-Baum/emacs-diredc > > > > If the project is interested in it, I can assign the copyright. > > One item that stands out (to me) from the feature list is: > > * Trash management > > per xfreedesktop standard > restore trashed files to their original locations > empty the trash, along with its administrative overhead > view trash summary information > > Perhaps something like this would be useful to add directly to dired.el > and/or files.el? I'm not sure what is currently missing (and I don't > use a trash folder myself), so I cannot say. I use trash folder as to prevent some mistakes when deleting stuff. This package should support the built-in features and not deviate, though I do not know if it deviates in relation to trashing. Inspect veriable delete-by-moving-to-trash move-file-to-trash is an interactive compiled Lisp function in ‘files.el’. (move-file-to-trash FILENAME) Probably introduced at or before Emacs version 23.2. Move the file (or directory) named FILENAME to the trash. When ‘delete-by-moving-to-trash’ is non-nil, this function is called by ‘delete-file’ and ‘delete-directory’ instead of deleting files outright. If the function ‘system-move-file-to-trash’ is defined, call it with FILENAME as an argument. Otherwise, if ‘trash-directory’ is non-nil, move FILENAME to that directory. Otherwise, trash FILENAME using the freedesktop.org conventions, like the GNOME, KDE and XFCE desktop environments. Emacs moves files only to "home trash", ignoring per-volume trashcans. -- There are 43 messages yet in my incoming mailbox.