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#63676: cancelling editable dired causes UI problems with dired Date: Sun, 28 May 2023 16:04:55 +0000 Message-ID: References: <83ilcing54.fsf@gnu.org> <87jzwupp7n.fsf@web.de> <83edn2jnqd.fsf@gnu.org> <87a5xp6xu5.fsf@web.de> <87wn0tm70l.fsf@posteo.net> <87mt1p59s7.fsf@web.de> 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="14778"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "peter.mao@gmail.com" , Eli Zaretskii , "63676@debbugs.gnu.org" <63676@debbugs.gnu.org> To: Michael Heerdegen , Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 28 18:06:34 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 1q3Iue-0003cC-6S for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 May 2023 18:06:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3IuE-0002tN-K4; Sun, 28 May 2023 12:06:06 -0400 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 1q3IuA-0002sr-P9 for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 12:06:02 -0400 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 1q3IuA-00026V-Gq for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 12:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3Iu9-0006JW-Sh for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 12:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 May 2023 16:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63676 X-GNU-PR-Package: emacs Original-Received: via spool by 63676-submit@debbugs.gnu.org id=B63676.168528990424184 (code B ref 63676); Sun, 28 May 2023 16:06:01 +0000 Original-Received: (at 63676) by debbugs.gnu.org; 28 May 2023 16:05:04 +0000 Original-Received: from localhost ([127.0.0.1]:54553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3ItE-0006I0-0V for submit@debbugs.gnu.org; Sun, 28 May 2023 12:05:04 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:1928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3ItA-0006HV-JL for 63676@debbugs.gnu.org; Sun, 28 May 2023 12:05:01 -0400 Original-Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34SG0cTv004886; Sun, 28 May 2023 16:04:59 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-2023-03-30; bh=cVIw4l5UJvQDyAzh6rYPnRLthpYOCI/UQo6vKAg95Q0=; b=Eajvh1Kec+VBcFZ7n2/FVv9NNNkoLTU5+0b5JrgyXPfC1qHQTLNab3NIp26X74BYid7G BfMt7je7NnYCcDquPGy2pr9JGFjUZVpjO4UXXT2Irm3NgEoz8DCFlot7OKmvMe0i7EqI +zbPp+is2/fTLl3eFph8YC8iC/yL0gKSwf60FwugzIZCRptip+dwrM6rswgkz/w+8DWF 37ERXkVKpMj3fk8RAX20hi2c0QBtqe7T7edBNe5UYvHVKOGJW4yI9T89Efs2kWdv3fsF XViK4hx/kJYNCIL1okuEpuyz3G1BU+7mTzDgN5uf9lYdX0jyJeD2KS8MHd1XKYhck3yb 1Q== Original-Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qva3ag092-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 28 May 2023 16:04:58 +0000 Original-Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34SFNGh6026042; Sun, 28 May 2023 16:04:57 GMT Original-Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qu8a8b121-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 28 May 2023 16:04:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FdIpLJGAbywJqAi9Hj/jhkVEqsSe6XkByZJOdnCzdz9B6Kzk/MLvdulftaF6jGHqhX3mRzyQS6BbIHsIR9RXFfYTbXIICa3MYAwXzGo5ogIKEhiWrxnkjWIJftCO9T8Q24BrPBy7j7UCZIIIMc3KEux/a3T1TJWMRmxGtcT5ewCO2txPlNa3659Fe3OJGbTDyvGDdjTMNpXLZaL/e1wWfGXFnIWIzgNImReNx7CUNxnRjPwIGfRwwfZbTttadea4iKRfk9i/fmHfrc89tGYMiasTyKWi9+W1UoPvIM9szFex3kXKS6eNLyZR6HR5uA5zY+zbL3rtsc0qKrKE6srjGA== 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=cVIw4l5UJvQDyAzh6rYPnRLthpYOCI/UQo6vKAg95Q0=; b=N74BTZsnPK4jrON9NNWhUEL0D0Q8AyYxIR8d26bbLJCpiwvayUeYl4b3NiRqaIGOxPQ62+vGME/oAKmpzsQ4rwDvGNLSMfAXWn+O0LHI96OuIUST6/2yIUwp7a9GuG5QxQonGRdnxz5gDSFGXaZKS40EklDqSHCzWJPuNbduP4Qwp+bDvKIrExI2nVXavS1fVw5aTWkXHF3DN9QzXQjYfYCeLkDX/NRuf4wzwDE+4VT0fIu6RvpdRAdZK0VLtcBotSvEHtZgcSo+Korx+osJvghhvbHqzoa2TQIW+ScrNBWgkRXmMQaC2UNp4FQIkiBtYqDMtJeCMvP9K7aOcbx8ag== 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=cVIw4l5UJvQDyAzh6rYPnRLthpYOCI/UQo6vKAg95Q0=; b=rw3I2fhx7WYjCyXLvocznxDfxebjdTubvk0dQtBO4cau5xM/TD0hGnIdu/przQJd4rAzy2EUEeGk60RDmlgXt+gqusgPkzaRtYL4bSJWJwoUT8oZIBiR3wgAyyJLC63cbvp51NAQmms+XVo1nmw3XQSDUDLCLYcaVhA9OoOsE4c= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH0PR10MB7005.namprd10.prod.outlook.com (2603:10b6:510:281::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.19; Sun, 28 May 2023 16:04:55 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a995:2ae5:2745:24ff]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a995:2ae5:2745:24ff%6]) with mapi id 15.20.6433.020; Sun, 28 May 2023 16:04:55 +0000 Thread-Topic: [External] : bug#63676: cancelling editable dired causes UI problems with dired Thread-Index: AQHZkSHl3+8Mq0wEs0egL1DSe6GMGa9vzSIg In-Reply-To: <87mt1p59s7.fsf@web.de> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH0PR10MB7005:EE_ x-ms-office365-filtering-correlation-id: 74e37ce6-4993-4f20-972c-08db5f954719 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yPieH3XewzUA2Fxwqtp6vQ+XQ8NMdKGS5AW45UAPmyekZsYDktloG69NahdhyVtPJFqIVfz7rPqYnSMmcLeOXZ9klumZz2nRpbY2hY3suqxK5oGtgmkIYHiyewbV583BI9f25V8LwyiHbR3gLfXfqOh1jznEOZHM5z+3xiMGNpIRs5kBx0+TyKFpZuccV8dBVhv7bCRUHFo8ioB4kmKrqZ1LCaKBcQNqY8r+l1uch4YvOXXb4KiQSa14CpnhKX2KfJHArcuW9u3dDtcCfRV+KQV+OAxhFkWQxD6fAN3FZYD6q9XL9ifp7ik15v8Rj4NY0YUIfXFLw5mAi/QxvPMfShilZnSpsf+K6f2GpwOW2PL9kbNVdC9uZgsvvWENUcEQmEqpPsiAlQI2ee/cRVr/VIsUGAStgSVE7MermLzPfaOfcTL8qRErUB/24D7YPcetef0bXCFmcvE4Z+YICMm2+XddnueHmaodnfRFIb45Gl2Y1QiyZJOtfmNNvW9XwmmXhN/Nur14Bfb3tUDOPxeoR78KnTb7Kvr+hMjnf6UURBYLlFQWODUUB0t/IL7xqtBd2R/GHEblfBVVIsUBA0EbcINwDDaypIBvRrLBZq8mvEc= 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:(13230028)(376002)(366004)(136003)(396003)(346002)(39860400002)(451199021)(38070700005)(76116006)(66446008)(66476007)(66946007)(66556008)(110136005)(54906003)(122000001)(64756008)(71200400001)(4326008)(478600001)(7696005)(41300700001)(316002)(55016003)(33656002)(186003)(86362001)(966005)(26005)(6506007)(9686003)(38100700002)(8936002)(8676002)(44832011)(83380400001)(2906002)(52536014)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: h1p/CwbAdDQhDPYVfATvlfVlN0QS5JCJTDpccrcbOZNGKib+l1/k30lgKKx9iWTEJocMuD5h8xVXPec6Zyn82lxeHyQf56kkSe7jsmoBcVGmbZFPwsjj7/kd1OLcjhMZiIF+TPD2rFzXeQBfkJJhn2Ne8YFCaxpPk+RUxBYT1/Dcvj+Nd1H/ummh4czB4kS4nUjGqPjUqfJ8FGJ053XhqCh22vERbMo7+rH0Cv/5VWNx6fS/OWvfvavo+cmBdX4s+VnSKiJnK4ZpE/Wg1PZ8hUvk/7CAutXdM1Js3qJ9ZQ50itWe/TEw4kv9dDjpLG9xHdn1ubhG8l7Tz9KZoofIX3r8nHg/hGz/RjcdzQln/DD4UYkMMrV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C36jowYhhxxiXOzAWZqVBFW7o47zsfjoaajRejv8AkzKNONvNVevJY7w+ASvgrfSeXp7ps4r4izYe6AnW9daUIHEUx0ZGc+Uq2ZIahrtTKw90haF59/zR6JCqq8hhTtzLx6dHu9nJNNz20qCFJ+TcgnAET7h0GNx5X0RRSSlaiHh1ac2cSsaoAZfqYcMLIVWyrXZ2bJrD6FmakFJYQNUuG6sjGDxNYnYSIaX9eDkUd4fBUVK/w19HJt9H dE6qk1Hjn59kNBz7Ah2gTE+h0txWFHHk1sgHNIn5C1IVwPNkmE0r3HVIsb2WU1q/SNmP4wZs1t+vqPzxEHiAaSz/iAmOOUOxVQ 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: 74e37ce6-4993-4f20-972c-08db5f954719 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 May 2023 16:04:55.0408 (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: 4XDzb/YhOFI2P5Ssm7CVrGSBsDhpHjxtSLez6QxY5UtYCBSdyFTNJlaeyRdPItlSBTIB/MYnsZkOJY2acqb2yQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB7005 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-28_12,2023-05-25_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 spamscore=0 adultscore=0 mlxlogscore=810 bulkscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305280138 X-Proofpoint-ORIG-GUID: YBY3c7ik7POXAaBPyPlVjaiEsMV2wc2O X-Proofpoint-GUID: YBY3c7ik7POXAaBPyPlVjaiEsMV2wc2O 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:262538 Archived-At: > > You could avoid such problem by creating a dired buffer with _only_ the > > files you want to modify (helm allows this), then switch to wdired-mode > > and do your modifications. > > Probably implementing this in dired (i.e. open a new dired buffer with > > only marked files) would be a good addition. >=20 > Thanks for mentioning this. Yes, we definitely want something like > this. I was experimenting with such "helper" dired buffers myself > (inspired by Icicles and Helm among others). >=20 > It's surprisingly hard to integrate such buffers into the dired concept, > though: you can't advertise them (else they would be displayed when you > "open the respective directory"). If you don't advertise them, file > changes in other buffers (like renamings) are not propagated into these > additional buffers. Of course it must also work into the other > direction. Implementing this feature in a proper manner is not as easy > as it seems I think (you don't accidently want to take the > opportunity?). >=20 > OTOH, performing such more complex renaming operations should be > supported as conveniently as possible in "standard" dired buffers. (Caveat: I haven't followed this thread.) With Dired+ you can create a Dired buffer for any arbitrary list of files & dirs, even interactively, in several ways. Such a buffer isn't connected with any particular directory listings (whether by `ls' or ls-lisp). E.g., commands `diredp-marked(-other-window)' do it for the marked files & dirs in a Dired buffer. (`C-M-*' is bound to `diredp-marked-other-window'.) You can then use WDired on such buffer, to make any changes you like. Dired+ hasn't tried to fix any WDired problems, so some WDired problems that you pointed to might still be problematic with Dired+; dunno. I'm not an expert on WDired, and I haven't tried to look into use cases etc. But for the case you describe it seems to work OK (superficial testing). https://www.emacswiki.org/emacs/download/dired%2b.el