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.help Subject: RE: [External] : revert-buffer in dired Date: Mon, 23 Dec 2024 16:39:46 +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="33951"; mail-complaints-to="usenet@ciao.gmane.io" To: Dieter Faulbaum , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 23 17:40:53 2024 Return-path: Envelope-to: geh-help-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 1tPlUD-0008fm-4M for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 23 Dec 2024 17:40:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPlTX-0007Io-B7; Mon, 23 Dec 2024 11:40:11 -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 1tPlTV-0007HP-39 for help-gnu-emacs@gnu.org; Mon, 23 Dec 2024 11:40:09 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPlTS-0005ic-Bn for help-gnu-emacs@gnu.org; Mon, 23 Dec 2024 11:40:08 -0500 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BNGBq5L025359; Mon, 23 Dec 2024 16:39:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=6aj43c+LNosCy/8qPlRT5ahc2sXvszXV7awcF7kAK1Y=; b= XDefvAv9nBUPAG8s5rilw6yjxPaMTOUNUsPJO7Ut7ia84hJlDpJPAe6G3aUIoLYx hJe20LeSbrPWefOlF3Fl/g6Ja1HBe/3IXh1Fhm9t5V/r8WxaEzEtcnfevyh3Iogs H57Z9aeD0JU0P571iCqgq30US6wKlU9CBcBDkYvj6xx5jJklaHbK1HxwbWNMqHBS esFOTV6JIYqW1vfYl+E8ncWRhEgIKsIvwORkEPVpmAi+AlevbHkjQPQi3lYQz/ql wJGKzOv6NZmTQCvhiyF0mMIJCOpNIvldaqqo3asoRt2D21Fe86a1IBcSlxJ4v+6j HIK8YBdqWx9mRPy7MJeEBQ== 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 43nq9yaua0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Dec 2024 16:39:53 +0000 (GMT) Original-Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4BNF0Dq0039185; Mon, 23 Dec 2024 16:39:52 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 43pp6jmys6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Dec 2024 16:39:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cIev0PFjsgl6eFuTN6nrDGeMQIN7KXbCQc1Yq7ubkyoI2OV223tFYyFJ3VkDZSnkCQcuE5TxZKzFVlm/yLOiZhNn4mKBsWF8A8wqqeIwSBt/DEH7e8WSKSK/P6uQS9+EBmiUqg4lMyK6tS5dhdiIh29Jz3DmQ0i36IrfUHKM4uk1/ZzeXY30SNp06nfaovUQkMAwohg6OagcRuF2w0CnMxhYhpKdzPf6WnFE87YH8b/zZ1hjWcvrT+ErGw1ydzN2zlBD9Vy/VGA7iIm3vPu4S/xLnfFexCFtwu7Kw1yRmWxqKMM7wu8aMPisfY99zHsUY6XFYhqh0AQRFc33hoJktg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=6aj43c+LNosCy/8qPlRT5ahc2sXvszXV7awcF7kAK1Y=; b=foaPKv1jkVw+oLOedb4AYzQ7aKckxzRxPG85CXBD+n7luW4Si6ZX/ottTLp9VC0CodbBG++HSiydyp3Hq2bbIfXHEwqoqsQdSMJ89Y3kTpXBYdyACPMPD83snQxN4oXC969yit9w2BTNLS7/sKDv1QPKgSP4UkluwGY2ysmBemYUlsQ07fWfnGwD0Ii2jLjWpk+hjWsdUFD//Gs/oiMMXzVlD0LQiZd8u16FQxuXtPC0eyaI2jhyXS5e/5f0dkbAXTugYT1mnhcQBuBOcJ0CfwuTYSxUYqcCLnTjz15MEFk4pt/2B8SAL+jewIMG3LBasKDl5hkwhKBdbyvZt/KG0A== 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=6aj43c+LNosCy/8qPlRT5ahc2sXvszXV7awcF7kAK1Y=; b=bqyIWHpecJ4MOTurJbjIVfM8xaKaL1f4W5TZbKNhENK+1z82BJ4sUE7xRY3SawpiyV38lfI2rxXucq/nHeURMS6e4FnYfCps/wG2hty6fOahu9WYZsvqd1i8RxQX85wBUoFIT+lnhvRuNu3G3KHQPpRTxVuLWekg08gcle0tsPQ= Original-Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by BLAPR10MB5188.namprd10.prod.outlook.com (2603:10b6:208:30d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.20; Mon, 23 Dec 2024 16:39:46 +0000 Original-Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8272.013; Mon, 23 Dec 2024 16:39:46 +0000 Thread-Topic: [External] : revert-buffer in dired Thread-Index: AQHbVVXOVD7iJFjZlUiYE8ezlQPTa7L0Ap1A In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|BLAPR10MB5188:EE_ x-ms-office365-filtering-correlation-id: 6112820f-fd99-48f0-71f0-08dd2370692b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?6C7gswm3sR7tLfVzPN2kfcjndwD7hAMyFWi75q4Q4YdxPL7ntO0f97turXVr?= =?us-ascii?Q?aS+4IptkvT8GicC0j60MJlV2ALbUBX4J0ZzRmmoI7mFGk0/mntepLBZULhSx?= =?us-ascii?Q?PkWj0JFFlbQw4PDT1CoDt7pa2foZWolEx7PJaqPw4wc3QX6ImBoTW33CvF57?= =?us-ascii?Q?WyDuWmsUsNJrMsX1Kwi0ZAnNZKvYRzObUKd3tF2BbZyTs+yS0diUXIGvhnVe?= =?us-ascii?Q?xTlIFts1CsSanhKIW3OlH3nt44SAJOWHICR8UQU6lIQuoOoKBy+URHj6Qn8M?= =?us-ascii?Q?eGb/xc06QOawK7luN8CjykH/Rj7yGN4k+4U4nyAYV+JK4Xicn2WGP2OvBovP?= =?us-ascii?Q?UuiZcKgz2pGyJoyftgs7PQnWUK9J7cwXrP/bIZsyNK4rOCA+NbT60Gp4ye5A?= =?us-ascii?Q?+g6QPUMsKxtgbV7tjrBCu3Peb+zFtfaCVzNfzZsyxTItOWjl7fHMPhtvru9C?= =?us-ascii?Q?Vwg3lOdvdx7kqoK6ooagYsfPceLJXEumgCM294JDY1vYukwbc24CrgTzwRDB?= =?us-ascii?Q?wUOGJ/yPPN/fEKU1aVJcsF8ewR/wIrQEP841/Jw/JryNexnqnSNhSkdinvxH?= =?us-ascii?Q?D9qkzo8iWu+ojUQzUDMzpYl+znQerPWIFbO6FJ1kCW1AF4BVq3p5X1pgpm8q?= =?us-ascii?Q?dOzRr x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?U8AnFrVfYFbgtpBEy/lLsOSGX3McYDWyrO9UO48+/0T5B6j2qRXhHdXf1TBj?= =?us-ascii?Q?N6/Wm/H4C4NwHY3WN19owckBnhxXVRQfZdh2Ba4nT85a7VXAM0uWMabYd8cx?= =?us-ascii?Q?n2TFZjtAaxmmPUnQaGMsLmeHyeDW/A5X5iUfBpVBWyjRw7X/gncD8AcW+HeU?= =?us-ascii?Q?XfjCO/MP8DsABY3d7h0YOs72Tv0/OvJo/kLCP1MMB8wbyWKzWD1L+ohRcUAh?= =?us-ascii?Q?+EGpsk6ARONLkOYj8ILyAS252cjIRspvAhjTtId3wBMo0k3bJNMW49rgZ7Jy?= =?us-ascii?Q?Si8U+dflLSXswHNYmLtWXfvYGo/ASUaJmOezka265kKDWawljYUWPFviUMFt?= =?us-ascii?Q?bDvKM87e9q+BE6oRt2bQfnNFwWqPuqWjk/4K2G9tLX0r3DcH+L4ZsQdLxnqz?= =?us-ascii?Q?UXENt7gBoHN6x48FT8+zWM9OjX+n2n0xmqR1Yz1+4YjGHrkvySOSpglmYY3k?= =?us-ascii?Q?KHAKgA+zz4JnEJ6LBAOxKLhu0fN4ewTrxFtKrMM7W6Fw0CxIwIzmeSE8Ch3N?= =?us-ascii?Q?2Qgd/Tp9/EHMzXrIPEmYblD0uDxMN71tQs1gknCLQLonU9uoJVeZgC9/xof3?= =?us-ascii?Q?KFNUETDWQzqoP5+S+FBDL26cN0Srq2JJcrylmrpSOySR0mEdEGVrIBE/FtjZ?= =?us-ascii?Q?CM X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: vbxIi47yX1IjG8/HDff1zj+LR2QdlW3tCMDzj/6XsE12gwqW3+/QG7k7DgkqvBqjhiu1+LJjvNdAevBI0Nfno9lfxj9IzaeZhLLUSE6A0AmQixfAl338ZEnAQt69vex6DWLGsIgyvufi1sT8K2/jcSDigrhKvkXdsB1eq75tRcD/LnF60PvxPnM52ngI+DK1ZmC4kR0aPbQJYOwyMnH44j9FVqYDq6bhdkmBUtY9vcgwir8cHS6urCyxljK+JPYsRvHg1uJ7q2bCu53/nlOg+3Kjjg7TFXHdtiZ7L7aBwEDt4FxIPqSaNvzptcQvOe3BPOv6hJcbQdW1fVJIHF+4Vp9A60NuqhLXeiJIRxSasnGiPdiFyWRUmPRoGhE9ycync5rxglQ+iI1V/lmz6Y5F7yRrtoXQznqIjezz1ac6hJb4unL7S0k7ZUkhrVD1M6t92DwWOFE6fdLCEd7ketN7eAIOMgw48qaP/CWT3FmEl/oGxP11XpA/wubCSByOBfMjY7BhHWcOwuLXaSMJqw2n4QDFOZmnhQlgsc/K33TgysjtlEA5eXBhJSFqPZJhYp1griqL0J9+Bu9cV7kz2PM9Q4ICSwcaQMGjRPeWtDnl4zc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6112820f-fd99-48f0-71f0-08dd2370692b X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Dec 2024 16:39:46.4193 (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: HbCzjspm9Vu4vN5DpgaPq2RA6x+HGFwl3CYwPUEs9CXUugd7O7Ouu2YoZ+/2qr+PXHywGyDAIi1Q9vG+W12YCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5188 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-23_07,2024-12-23_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 mlxscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=821 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2412230148 X-Proofpoint-GUID: GMgDoBAeAd3yYOwOqSYfVt_ztx4DBsv8 X-Proofpoint-ORIG-GUID: GMgDoBAeAd3yYOwOqSYfVt_ztx4DBsv8 Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148927 Archived-At: > I think, it would be nice, if the newly introduced: >=20 > *** Clicking on base name of directory reverts buffer. > When 'dired-make-directory-clickable' is non-nil, clicking on the > base name of the directory now reverts the Dired buffer. >=20 > should not change the position of the cursor. > Is this possible? >=20 > The 'revert-buffer' in dired also changes the position of the > cursor (to the filename of the "actual" line). Do you mean that the cursor is moved from whatever position it had to the beginning of the file name of that _same line_? Or do you mean that the cursor is moved from wherever it was to a different line (at the file-name beginning)? > What is the idea of this? If you mean the former (above), then this is the standard movement location: beginning of file name. It's what you get when you use `n' or `p', for example. The current line is recorded as part of a Dired buffer's state. The cursor position is not. I can't speak authoritatively to the new vanilla Dired breadcrumbs behavior about this. But if you use Dired+ then what I describe above happens: the cursor is placed on the same line, at the file-name beginning. ___ A breadcrumbs difference wrt between vanilla Dired and Dired+, I believe, is that the vanilla behavior is that function `dired-revert' is always used, instead of whatever function is currently the value of `revert-buffer-function'. For example, with Dired+ in a `find' Dired buffer, clicking what you call the "base" name (the last component of the absolute file name) runs the `find' command again, to refresh its listing. With vanilla Dired, I believe that even in a `find' Dired buffer clicking there just lists the default directory. I think using the `revert-buffer' of the given buffer is more useful (e.g., in the case of `find', redo the `find'). There are lots of buffer modes that derive from `dired-mode', and they sometimes have different revert functions. To me, it makes sense for reverting them to use the function defined for the specific mode. ___ Dired+ is here: Doc: https://www.emacswiki.org/emacs/DiredPlus Code: https://www.emacswiki.org/emacs/download/dired%2b.el