From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#60460: 30.0.50; [FR] avoid putting remote files to local trash Date: Sun, 1 Jan 2023 16:41:17 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32069"; mail-complaints-to="usenet@ciao.gmane.io" To: Ruijie Yu , "60460@debbugs.gnu.org" <60460@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 01 17:42:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pC1PZ-00087t-5L for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Jan 2023 17:42:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pC1PP-0003Gd-Sg; Sun, 01 Jan 2023 11:42:03 -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 1pC1PO-0003GU-QN for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 11:42:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pC1PO-0004tR-AP for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 11:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pC1PN-0002i3-Oa for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 11:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Jan 2023 16:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60460 X-GNU-PR-Package: emacs Original-Received: via spool by 60460-submit@debbugs.gnu.org id=B60460.167259128310370 (code B ref 60460); Sun, 01 Jan 2023 16:42:01 +0000 Original-Received: (at 60460) by debbugs.gnu.org; 1 Jan 2023 16:41:23 +0000 Original-Received: from localhost ([127.0.0.1]:41569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pC1Ol-0002hB-Et for submit@debbugs.gnu.org; Sun, 01 Jan 2023 11:41:23 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:60962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pC1Oi-0002h3-Ns for 60460@debbugs.gnu.org; Sun, 01 Jan 2023 11:41:21 -0500 Original-Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3017mvNr031179; Sun, 1 Jan 2023 16:41:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=Upe5/jGZShyYQ810aNStmHf/M7MsfNlkuzLk0k2j0m4=; b=gyTrYUjvTCw1zRIqm9UCb+esDuqixHEQxUy44a/tFvzWasvgCxpnMDJRg3WZQ+Cl41eJ DcNbPBulaEqksSPlSjLiCee6bBSLdJBrlwhV1C66NfnNr/zj/jnbzu8xDbmwzgHSShvq 8KgY6aqVcSJyFcCqhxlzreHMFczezaC24dAKHfh0OoxccRivQcNr2olK2y99maNbekLk JGGiIaKOKFCA+hIJnVjEEQwPbL2CacciKhGKhH6P42bcyvU6Ykd1EyLTST3JKPuXWF2a cVbHDGL8UBY01QXQOICLoC+LvrJCdq8rlVSwViIlrvx/0/Ve9iXK5Fam09BZQWZ5pKTB 6w== Original-Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mtbgqhdn1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 01 Jan 2023 16:41:20 +0000 Original-Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 301G0GZW002170; Sun, 1 Jan 2023 16:41:19 GMT Original-Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2109.outbound.protection.outlook.com [104.47.70.109]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mtbh96bns-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 01 Jan 2023 16:41:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ESSrvY8HFR09dGBFHVnBe/GJV4m3X1EjkZmJY/SGWoP0gBsFoiWKBV0xTNxerde57GkjuGcPDaZ/mptGYaZi1S9JwHqOqI1phHhC/JLZCCQOpMA3FqaEfeCEUzUjO4CjrqVy6FREUuiJ2vB0xtkMY2cs06zdM7HdJCchJcDjjp+Tr6HWDt/cf/3PSFninTFF+qmBUOhrtyCM2hrRhGIg7uX6JBpIhlsMn/lXCtzrt3oNj224YUh8IMSn6D4495j0O1hg4cGLNSbrwlVaCjcxH1bRpGt/p1Be9jxMFvZiWk2ZoXnWTPwDL6EJBHusZpuAbHc7bPrN8NbXBwqb7qZIfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Upe5/jGZShyYQ810aNStmHf/M7MsfNlkuzLk0k2j0m4=; b=gBcPbxGjhi2QUnv2nh6vPLL5prPNy/9a7U5jCDMcvmEVYrH50BzpGN++VTdrob90m7i/YZiuYAQ7V2jRobKlh9BHY7s1QV+fdG/8O/sbet8CHy88splIIAZodQrVpSZQYaCtdAlxXXkmT93HfAOCMB97pd5NlHaHi3jdNKhmqADUpo24hz83/AirXK9U/x6rsIp1RpswKnxoao0HDHZNVtYQ1o6j+c+G7LEZbO6K3cRXPOPVmfKh1ZZDkJXzUX1uWlsfISU/TsQorR3BqrTV91a7tialamgYmSSrGlLBPhN2/yIpdPQ8y/0LqXgckZHlEBw0ltzWvKX2iT1+DKOmDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Upe5/jGZShyYQ810aNStmHf/M7MsfNlkuzLk0k2j0m4=; b=IMocA+dVZxnNOM3mTm+1WHIioFAQxihJ3KRpYW/ZXWL9DwcgLzSPLDwrxc4ef6FLwmPwgdA9MNKKw0w8M5IunBWXq9glmqzjvJ02g7boYi6/BtrzYNerHwm63KdWEvUjzGAs0TatqwwLOBD8eS22DpmguVTtPtSRbu6w6TlBXmQ= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BN0PR10MB4952.namprd10.prod.outlook.com (2603:10b6:408:122::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Sun, 1 Jan 2023 16:41:18 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29%8]) with mapi id 15.20.5944.018; Sun, 1 Jan 2023 16:41:17 +0000 Thread-Topic: [External] : bug#60460: 30.0.50; [FR] avoid putting remote files to local trash Thread-Index: AQHZHbxBMcfMu7C2sU6qKa+ZL36P2a6Jv8JA In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|BN0PR10MB4952:EE_ x-ms-office365-filtering-correlation-id: 86258a7d-c67a-47a4-40f6-08daec17017e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yiR3Sktk9rURXCXkpDt6QwKPQv7ZqI1slwi73rpKNyLKDAN4FBZio+w45OsaNY+hl9vj0wmpi4VzAhSwieR8UXcRVe2qAaYZOrWRHlhC++IbM+ll5Gx739AbgJegL5XLaO9izY7P8ntHHJJTlhqrsOAKQmb9tyaVtc8LolbcywoRwfJiLr6ukfzji3J4k1Gzs1p6yXtT6jpkBrhPynG8MbtlFYzW7Jxa0jVtMPtxivuG2J65w6z2zgXXGJtHDFHV1hYWcKL3OhZeM59A6NFxCb9QME2T1dxyvjAzTC+noIKojgiepu3AJaJCWPgg5OAtZAcFj49zfX2aavfKPPrVWz4ODWmWmyzcHOqPPdmaXtUWyDK4bcLA9ThQ8UcXnkpBdNb5lPZlNutFltpadjZtn/3I8hPr/F9fHQvfhNO0dyroSSDObydP9jN0hSp+9k9pISF8lb6XW8xMWzNUdN7J3ELjcW4gtSL0LwVpb//zq+4NCzf8cJ8OiUl2fyA6ryonFbLwyGu4dbFQY2/5p66I2ndGg8U6BKkpgoj/rq/MjwZMBXHs3TwB7kQDKVxFTidxmhkq2JQLf6CYPeAj/jlcRKHinxCsr6gzSU+PweAW/pRytBgiIzBInieVANrNPeuogAheJfw7tVauCZaMqVUUsDLBZbnwpNNLAMp4iHEj8DKR+pE2EE15gWoMwdkiru2pnHtzteVehcaf/OT0xYiMuNR3Pwd6+sPs0dQcA//dogc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(366004)(39860400002)(346002)(136003)(376002)(451199015)(83380400001)(186003)(9686003)(26005)(6506007)(33656002)(55016003)(7696005)(38070700005)(86362001)(38100700002)(122000001)(52536014)(41300700001)(8676002)(2906002)(5660300002)(8936002)(44832011)(71200400001)(66556008)(478600001)(66946007)(76116006)(66476007)(316002)(64756008)(110136005)(66446008)(22166003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: Z/LkzKsepvOc1Uo5nr+BC5f88ICLBSJzpfQATHKxRs4MUurGhlnsk9zXq9k+ycGDI5jrWgNr1ll3AZtbrGdB3sCDHRLTn3gvGGYTatVAohzSiozyy2iYSh8U99MsYn9mpyerKDm5pl6IMm4iBsxDmnpqbua5qjk8bCeiGW+I5kPhJgO74ZyveAeeAjLuO8s7ZnRxs/a8aRoTC+2+D62ZAfISUk/5yhIRvW18uUBtyhIgkrYWzi31+LO2uyAIGFqVYzvPRVPzjsog7b5uYhke10jBfybhZb0JUwOzJLsuRsYtJjaPIQUGiXI5uicf0N1cNOKh+y0B28Sn00nax0RQX11kmfdazyWO0CGKqcI52YNZVsLeqRVwE6f2TJgiQ2sfPmgeE8kZcst0dOLvMMXMSX4lxtHUn7EoQfagClFWuDQ7Kc60BxopJ8C3p2hWbz3kTCe91bow3MiTXqpo/Que11lkOGNAPYsr+wGZJ7ZTgpHMlsCya+8Idx0QMMnahRa3iJXh9sz0UYNRW91cY07/f5x5DZIfsgbutRo2iPsk9tmhJOOwXWMf79iyyMSJ1SWqzMKcdrl2bt8m/h9h9wz6M+60uPbIqniF2Z5h/+KIdW+pJNgAy20AI24WQ1JkeqQOpzvNpXLWpjgP2wF/V1yQbCcf4hdh4FeZ3GxuxjwWZqBnASXu8XNQojusKyX1/djlxswWTCvl3eqcspI6VqcTagtIQSwxvx8QWmtexEfHhOvh5zKJE++7kkcjuH bFT8kN5bZzsOnl5WmMlBEHDG6IgnL5HcEZT034FjgUUNPeAouiCJoW81Xv5d0eg1lKceFz9DcYHtQgEBZZkhHdbUi+zmbv+YUv X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86258a7d-c67a-47a4-40f6-08daec17017e X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jan 2023 16:41:17.9488 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EsXkPWXQoUuaDMkT8SmtlT8G8sEvv7X0l/IWHIFMt6JHKAVocdFMB+PKOeyYY6o87S99FJheJTkrWUqvled+4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4952 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-01_07,2022-12-30_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301010153 X-Proofpoint-GUID: cp0glmSSEqiZJ5dmO1AIVXsNJWmUWmZs X-Proofpoint-ORIG-GUID: cp0glmSSEqiZJ5dmO1AIVXsNJWmUWmZs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252251 Archived-At: > In response to this, I want to propose a change to the logic under which > trashing is performed rather than deletion. However, I am not sure > which one of my following two ideas is more appropriate. >=20 > 1. Allow the user to disable "moving to local trash" only for remote > files.... > 2. Use a dedicated local trash directory for each remote, optionally > behind a toggle. =20 (Caveat: I'm not knowledgeable about sending files to trash.) I would have thought that we already have a way for users to customize which files and dirs get sent to trash. Now I see that option `delete-by-moving-to-trash' is just a simple nil/t Boolean, as opposed to being nil (for don't trash) and non-nil for the possibility of filtering. Not trashing remote files is just one kind of filtering. And you say that you want to do that in particular because some of your remote files are large. Filtering out large files (local or remote) is another possibility (logically not the same as filtering out remote files). Users could have any number of criteria they want to use, to filter inclusion/exclusion of files to move to trash. Why not use a mechanism similar to what we use with `recentf.el'? There, we have user option `recentf-exclude'. That lets you use multiple regexps and predicates to specify the files you want to exclude from inclusion in the list of recent files.