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: Is it expected to have reserved "system.el"? Date: Mon, 2 Jan 2023 19:35:26 +0300 Message-ID: References: <83y1ql15e8.fsf@gnu.org> 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="1178"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 02 17:40:29 2023 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 1pCNrQ-000057-Li for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Jan 2023 17:40:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCNqx-0004wC-9K; Mon, 02 Jan 2023 11:39:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCNqr-0004uL-2f for emacs-devel@gnu.org; Mon, 02 Jan 2023 11:39:54 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCNqp-0002Jl-5j; Mon, 02 Jan 2023 11:39:52 -0500 Original-Received: from localhost ([::ffff:197.239.35.172]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D81.0000000063B308B6.00001181; Mon, 02 Jan 2023 09:39:18 -0700 Mail-Followup-To: Eli Zaretskii , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <83y1ql15e8.fsf@gnu.org> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com 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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302195 Archived-At: * Eli Zaretskii [2023-01-02 15:35]: > I don't understand these questions, and therefore cannot answer them. > > Please provide more concrete details: which code you tried to use, and > what was the exact message you saw (please cite the message exactly as > shown by Emacs). Without these details, I cannot understand what > exactly happened in your case. Here it is: > move-file-to-trash is an interactive byte-compiled Lisp function in > ‘files.el’. > (move-file-to-trash FILENAME) > 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. > Probably introduced at or before Emacs version 23.2. As you may see Emacs expects users to define function `system-move-file-to-trash' and based on that, is there notion that package named "system.el" is reserved for users on specific computer? Is prefix `system-' maybe reserved from Emacs for every specific system (computer)? That is by chance exactly what I do, and I would favorite that approach. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/