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 18:20:22 +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="12943"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "60460@debbugs.gnu.org" <60460@debbugs.gnu.org> To: Ruijie Yu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 01 19:21:19 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 1pC2xT-00038b-0q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Jan 2023 19:21:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pC2xE-0007Kz-3N; Sun, 01 Jan 2023 13:21:04 -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 1pC2xC-0007Kb-Q5 for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 13:21: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 1pC2xC-0006Cf-I7 for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 13:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pC2xC-0005SK-4L for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 13:21:02 -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 18:21:02 +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.167259722920910 (code B ref 60460); Sun, 01 Jan 2023 18:21:02 +0000 Original-Received: (at 60460) by debbugs.gnu.org; 1 Jan 2023 18:20:29 +0000 Original-Received: from localhost ([127.0.0.1]:41720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pC2wf-0005RC-0d for submit@debbugs.gnu.org; Sun, 01 Jan 2023 13:20:29 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:1226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pC2wc-0005R3-Hj for 60460@debbugs.gnu.org; Sun, 01 Jan 2023 13:20:27 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 301HJT3x022683; Sun, 1 Jan 2023 18:20:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=scg82ZajWr3LoxUOE50oq0mV1NjC3bE7TjJz2crixhE=; b=PTSsII9O/O+NV2UAB5luvQJa+aXgj1LpRQzn5naiR9K/6IEkiR+KyH0U6j0x4i00aqVN duf+9ugXb+p1oiZDkm1CIXcRNDKoW8u7QtE80zYMJ7/MZQZnpItJ9SlkFdrwqw1LVivJ SRuihPc1nzbkXyW4fnKevPUCRH5Lo+7zSlrz6hZgOji7HuXV03DB9qzFh3luz0AdR1xn DrsJKd22YuBoVt6QcNre0W7kCv3qcxX/oLEfEgv+moyh+4vo8gEHn6fpqKshvzNUDybg s/Ipz84yNMLninbHIsXkBnBXbGRfDZYEFiIwKKyJfOs3tzEABb7ESeLYJFlwGINe/6fU yA== Original-Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mtcya1d9b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 01 Jan 2023 18:20:25 +0000 Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 301FULgG005966; Sun, 1 Jan 2023 18:20:24 GMT Original-Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2102.outbound.protection.outlook.com [104.47.58.102]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3mtbra7ag8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 01 Jan 2023 18:20:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HmeAt5ANwSAj5XgiF+2Jz3Mhs5McqW5L4A4UDE2YKVyfO+wjZ6wUx6Yi51qolNXcItrnWPOEYb9u/8KP6hxgBm2rOfuSSD96mMSVpGCRHU1c3gcvYTCluuK0/laQI4XkeLXLqULLwO7rOtqm1Th4thJ1gsn7UdfUdxNlLq+TKU6l5CVKAYXB4mvj+HUXipVV6CFEzf7XLFWqmTuhwzaA+qhKfHjys9YPA8wewPBUmMg/u/HNeVfuqaFI33WLZFv1SlnYzXk9jR0zEQQukecv1Sbv3I4EefdyJojpEcdBofERcB6TKhBTOXO5ynpqK7tG9poZmVXXO4rc+bQhdulG6A== 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=scg82ZajWr3LoxUOE50oq0mV1NjC3bE7TjJz2crixhE=; b=MR+GWRLDve/GMtINIJr4+RjK5QaOa7atcsvityIlxBMAIyxr9Ta4wGWW791z4H39x+ZY1n+sWNTMhNLbFfnN7yN/8FNe7TTkVg2dpl/hFDHVguBGJZB5mUzExRzruwQMDKiEbpl67j8xOX1AJW+HMPSRciL9Qt8sf8D3QOeJSyKTYujWexCGsI5GUOzpfLTZqvq7P4UBhqaPyHVvzgBkuPUFNM/R+Lt58AbGMywFUo2A3qaRUZSsQxKK9UamCnxFzduMli+rDV6IBHx62rBYdK+I5kK/iA55pVqnZVUk6pU3zf/j7u9B4/WeVvJurix/gbkPH2dc46IeXa0OPIj+aQ== 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=scg82ZajWr3LoxUOE50oq0mV1NjC3bE7TjJz2crixhE=; b=OTfnDQA8oDeieQthlXDqkXjA7f3c7VX2/l0QcZTytrYomVK1N6SAeMXYKPmoM2TS3RfU49qJ0fuEkQjcifDHM5g5fUx95TGmBguFt8/o4PPPYtqEsm2crvahmt5PJNyLLPvYXrw+bcdJPMUKzEKpYF10yAeeV06khVLkq5joXY8= Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com (2603:10b6:5:355::21) by DS0PR10MB6174.namprd10.prod.outlook.com (2603:10b6:8:c2::21) 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 18:20:22 +0000 Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::59af:ade8:1aa1:3ec0]) by CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::59af:ade8:1aa1:3ec0%7]) with mapi id 15.20.5944.019; Sun, 1 Jan 2023 18:20:22 +0000 Thread-Topic: [External] : bug#60460: 30.0.50; [FR] avoid putting remote files to local trash Thread-Index: AQHZHgMzItkU3BA8U0mqxwECVklsnq6J3EEQ In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR10MB5473:EE_|DS0PR10MB6174:EE_ x-ms-office365-filtering-correlation-id: c93c179b-9cd3-4626-1969-08daec24d8d3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9iNBvqcEA+VpK70tHKdblObzOvWNyjxJO4xHmQ8X5LrqPA6OL9c8SQkMm5vJqQ4Gp/Uhqk0e5exxeHbvWFNuaEgM2hXe/1bg9lLFEu1vtaKGCSmklHnSDnhoYpTGCLv4hX9xrASfHlSxPJd5gGfllamX2QQMzsAOwnXIFK/zkhA7B9ZtG7vQzzCPQPvqx0fNNbHK7j6T+LShp3XYHkomX/pq6aVjEDV/0Emm4e8fA5Jl452ve8uIGxVWhcvkDqQWd3CoaHhOeOpeAHAZJ2PAsNhoOjzVhwVU5I5LCfA91Bwv0ZNamuuGeMTm/p/0vU3RBogky4OBuB+LLBOYYQsZhkmJcHz+t8ocGcjz6u6HNlQk3OUiwXCg98h5ZqJDbvBYj1bskrBbyZJH5g14HyosdSbF5qJ6E1c0H8HsEYOLteT9gNsnAJK4nHUWKvZDwtO76YgO/23z/98WHks+UmLXAQ8pVUhHHjeNK2YEhXAK8AUBApbM7vtaWnng+mHnuO3cHe8ki3JDdRa5BH+j7JaNpUlwXTPSirFhOY2T9kWksAl0Db2xdyPpMvUYv70hWgJnDZJlL5B5ubjYDbBhr4yPGc4hGOefXpOtmisjw79+We8nG9QN7SqjlEQO5y3m75n4apaHF9P3yoTi3FDON0p5wjw7IcrNqQ5It2DS/8i2Y/v9MC+54+sgb31UkloPNHrDjnV4+h7Xbq4h06B7ahs/Mwbx3EXumhsrCFV+FhTgRN4= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR10MB5473.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(396003)(39860400002)(366004)(346002)(376002)(451199015)(8936002)(41300700001)(4326008)(66946007)(8676002)(76116006)(5660300002)(316002)(64756008)(2906002)(52536014)(6916009)(66556008)(6506007)(7696005)(71200400001)(66446008)(478600001)(66476007)(44832011)(86362001)(55016003)(26005)(186003)(83380400001)(9686003)(122000001)(38100700002)(38070700005)(33656002)(22166003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: cB9H7p7J0v2b6ORJB5mtZm1iMZD+j+oXOCtkub5jeNWcgopH0hX6lWVtLw72qHBS7DXpBJ409fupc3zA97gOwSgB8eSQJ3g+BD/WolsNIiecktqUdtOKrWxWex/4EAY418TKDOc1K01flWdVjl9E5YzprChSQc+CA5ZHzopKf6dmv7YPINm+wnGR8HhsFUwFhd8RneKKTRqf48AGq1CLTGjEDQDwv1gtzBCKQl4xLGeQ3M+7JG27878YXf69/k+nvE2XtajVvI6iAcC0xyqlgJ88hgq7EDoBjRymxB+hZZZ4kkyei4uOAMoQs06klR7FNAr93SWQH8TOu9o4A8Iw7xdZ7FbVb3rSFqT78lI0A6ZlgXFzw5GnVT+G0sThkoqLsKw+U2iZgMFvsp9/f6TLmePRJdLd3zhiq84NXTM5IDessqZgVjia1nh/OGiHrWQw46x/o4dPTiqJ27zaeXf3Nms8ympdMcSKPZQiq2htzT9KMlLyqqbZTYbZJGMnXYOa+foki1IamCMVrG0O46NPGTHrQ0MZ59b0oLGHZSOCwHX91pDCji6cgWycV2y2t7xIGNd/8b/xPX/zQYxwYWjo3UztjcwGeILklTAxm+//d4RknWVYQudPsDMFsyAie9IkkgmtPzz/fhoOYP1QDOGjKgj0zR2La88b9vOecBj9Vz0MEjYQf7ACumrQYu1prD/s3ykSKTQdCA25Pu3tDctzQloHEMwyTP8DGFOU2Y+kCkRNOfaQ3HG8TJDvtz ytvNDwtseZEBEb+nv5JZyGS8p2JeRpmeHv4YP/hmNA5kPU+/e1kh2VyBSA9yBT8EY+9tRJlbCDZFV/0/64PGBGiIB7K6gq5E3H X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5473.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c93c179b-9cd3-4626-1969-08daec24d8d3 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jan 2023 18:20:22.6412 (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: CD2JPoWky/gzyMRrbTAMvw9ySgS6UvrravMJQV94ccDw9nE0SNkjU7BFqvTwBIHilJDlHJ13ZZqv8wWmDfUk8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6174 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_08,2022-12-30_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 mlxscore=0 malwarescore=0 mlxlogscore=971 phishscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301010169 X-Proofpoint-ORIG-GUID: ZbSOr8FnsjULJMG9FMqC-J2HzGQUR8HL X-Proofpoint-GUID: ZbSOr8FnsjULJMG9FMqC-J2HzGQUR8HL 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:252270 Archived-At: > Similar to what we have for "recentf.el" today, we can have two > variables `delete-by-moving-to-trash-include' and > `delete-by-moving-to-trash-exclude', That's not similar to `recentf'. There's no reason to=20 have options for both include and exclude. It's enough to specify what to exclude (that's what `recentf' does). > and make `delete-by-moving-to-trash' a deprecated alias > to `delete-by-moving-to-trash-include'.=20 I see no need for that. We can just change the option's non-nil value (meaning trash something) to be either: 1. A nonempty list of regexps & predicates (like `recentf-exclude'), saying what not to trash. 2. Any other non-nil value, meaning exclude nothing, i.e., trash everything. #1 has to be nonempty, as nil means the opposite: don't move anything to trash. Alternatively, the option name could be changed, and a nil (empty-list) value could mean move _everything_ to trash and `t' could mean move nothing to trash. I don't think it's worth doing that. I'd suggest not renaming and just making the change I suggested. That's backward-compatible: nil still means don't trash, and non-nil always means trash (something, maybe everything).