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] : Re: revert-buffer in dired Date: Mon, 23 Dec 2024 22:02:12 +0000 Message-ID: References: <87ikraoz8t.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="25401"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Heerdegen , "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 23:03:06 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 1tPqW1-0006Pt-ER for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 23 Dec 2024 23:03:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPqVR-0007fv-Bl; Mon, 23 Dec 2024 17:02:29 -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 1tPqVO-0007fQ-Tc for help-gnu-emacs@gnu.org; Mon, 23 Dec 2024 17:02:27 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPqVL-0004pZ-P7 for help-gnu-emacs@gnu.org; Mon, 23 Dec 2024 17:02:26 -0500 Original-Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BNKXqLf005203; Mon, 23 Dec 2024 22:02:20 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=XYb12NUC0Cf2viXaqfzR1O3ymUGxoq89maH8RdmkpVg=; b= L6P7H919C9G4vhdSV638b8A0s24BWfs0YeR9gu2irWyevyPOW5LDPZpLXM6XD6Ii N0NOCVi3PDXeUcTOPZPH4vDgqTvbhMxMiHFyrVxR95olbXihhDpdsvafvd8cttwx euKol9ZNT8XXoDFhdHRO196z/QWYDoZ7y5M1VcTjYG8z/x5wnhBDzPxZ/g0mT5HL XeujMle4fIXZlOp8z8jgfF1J/HlGRAcpaNZi1ienat9a0UXAUwOK8iqOfLL7CpCO p/WbweScHsuS+lnffT1x2SPG+DsDiFnoOadS3actIJyADbugZX5wzM+z9i3Cr8v4 g8muECXH24prx4dCCA4DNw== 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 43nq56udnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Dec 2024 22:02:19 +0000 (GMT) Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4BNKV67V005079; Mon, 23 Dec 2024 22:02:18 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2049.outbound.protection.outlook.com [104.47.55.49]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 43nsdg7feu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Dec 2024 22:02:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lJBRYrv843Zy91Et3SIfnsOgrqJ2B5GfBvl4CSSbB198PZqpH/i5IvHIhqrBTqqhgDYCznj3oZ/55nY1UMGn5Si+aZiIdXCDzxDp/xnE2kxU4pfyI6trvIwybgNuIKW0LQ5wWTUmrUKkGHJrDBhycpaEdnwyHdWOWiBghR0YSj1Fs1t6caQT8UKbGv7U5u0rNEzzTP0XFw3vSG8tVCdhWWPn4+sWkDeiNHvOUSUBxGzILlBJBdIMi2py5q5DAzRLmxkDB67+GUrightBRU5dHPtEJWtKKwR7x0Gv+uYVTtRh107dJCmVa1PmKnmR+bbX+zlsdNJV2wx/n71t4efoeQ== 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=XYb12NUC0Cf2viXaqfzR1O3ymUGxoq89maH8RdmkpVg=; b=onAuUjqYGyBlRf7OlHz5SAJM+rooPuDdQrE91mw7Rf4Fzji36nufleUgkoHcbgRn4zSXwYhcDeGNv2C5bVRtiv5yswotveIrz2QNMd1ExUCtwKIciMqEQN1NYa2b+O18f4x2sehH/eGeKpOi4U60t/qI36oEetW4nmBa/berWFXUdqkUULbMtPfqKzkd0kT8mFHjjuoM1cjdPnGihd3awCfdeoX14FaHnpCWhHE9291A8DuUXDgjeryP4lIHNeenF5TwooH5oo9CwcbzY2VRQRonnsahE1PlBe2GANjGrwSEu4QqgetQspYtZbvk6P8Jv6XT6hpYmx4R0wk6m5wcoQ== 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=XYb12NUC0Cf2viXaqfzR1O3ymUGxoq89maH8RdmkpVg=; b=nnMePEliwHsa0HLHHKuFrRB5Ne8QEJelAr14eVcBRJexavgxYSu1IbKC/gu6uZL+W5aN5RGhkF+WjIm9r8mD/Y1tvIAqDvMefgVoINQj6f5EK385FIKy3U9wLSdRvaXT7GDnFF7Onng76dlftbSFV86jDyHxCt0MpxujLcWh1gU= Original-Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by CH2PR10MB4277.namprd10.prod.outlook.com (2603:10b6:610:7b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.19; Mon, 23 Dec 2024 22:02:12 +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 22:02:12 +0000 Thread-Topic: [External] : Re: revert-buffer in dired Thread-Index: AQHbVYMd5+Y+RAM9ukKetWvWDrNwQrL0X6BQ In-Reply-To: <87ikraoz8t.fsf@web.de> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|CH2PR10MB4277:EE_ x-ms-office365-filtering-correlation-id: 97eee9b3-5b53-4662-4dcd-08dd239d7460 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?SswGZsgxS9mWUfL0cOksyvqG/qz2nJwFH/pVp8myDCfP4lrcSxMaVnsJkqIf?= =?us-ascii?Q?+0ED40wnPeAHquqgFh0buvxDcfa6jmSft3WmvdyG9o83KewAE3BNW1wzEuQR?= =?us-ascii?Q?KasxuVNUSQo9mJL2tsh7NQVuYD9gUxeKR4drxl8OoQZt6dXje1q2JGSpMLah?= =?us-ascii?Q?DUfEUdPagFCWmBr+1kV7k3LHOIMi4SFp1rLYxoIa3N3Pb2GeY8tSnbv7Kl+a?= =?us-ascii?Q?rmLNPqRASWJqxh7tQre2lCVljDLRXKLa9exFGABT+kotaTn0zTyrcyN3wvHI?= =?us-ascii?Q?nHo19B2JWTjWXs6HT4QOq5sZN+B8mQHhWJwVFJD9zKioEuxEVWeMKzXMzkmg?= =?us-ascii?Q?C36xbnFly107cxq6+gLsZMN8OSqQZRo2KixK2kP4OyMxQfSSVwcZGczCfxnz?= =?us-ascii?Q?rMqQVSwD2GKFmvCZASE54k/igvprtxebcJXxzgmwxveaE+mxlOCZ82QF3EW8?= =?us-ascii?Q?1NgBsCcVY4jY2zaFaLxh+qKvtY0nw8dPeAk5AshR4sjDTRG2YxkDm8O7Q+6G?= =?us-ascii?Q?wYJuyy2zc3+MwCd4B8vMxlJY34GuT/pFLq72KHUuGPux4Wl5gVW8ueiU6ElN?= =?us-ascii?Q?gmC4Z+ZXPaAQEzxTmf4jTtgMKCxA5WZ2EA1UQTsK/gJRd4M4jEAtmV+IJ6Bq?= =?us-ascii?Q?G8A7S 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)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?pzIvs4BItwdkdy8y/gdZnSjyD98vUVwE0J0VFmyaAVLUfZe6xHTkVPROxG2/?= =?us-ascii?Q?IFPh+WoZp6jaNF55KZuLj6Gi2TbfYxuNNlLDA0zF3umIHsajKu7HHsGmFfa4?= =?us-ascii?Q?SoF7scsgsRNkmPCfwretXCZrx2DihgthVksvVGNGpDHpdwanZ6XfnBmSCHYQ?= =?us-ascii?Q?V4TVrbToF4w81HJH78l7Xkosq5atNiq2GZZSjjQDmrtWH7lL/cipf9iTomB3?= =?us-ascii?Q?rK8y9+cjlur87HKm9/2EJzXsOQXX+QXT4xHgofG92xT0iudsZuSaz9QXZ4i2?= =?us-ascii?Q?droFaMi1lv2mEHxTTy7rL08st+ZQ0oGTeZ9gHP5lySI86MxgW6hLF8igknj5?= =?us-ascii?Q?Zcd7kYn5UTMBtAmGKPt1DYRrXEK/d7mJyHKWxv6SqijiJc9xdWng/KdiM6kk?= =?us-ascii?Q?HRDv5WHyQADPuLwHP781GXbClblYuX6ME/PG11DAsZI/tll566LIjYR/UfTo?= =?us-ascii?Q?KDcmgOYqB7zNxkk7HKXS4K95rgz8HRLmYNpOFgc/cmXJsUowZFZ7idoZGeWc?= =?us-ascii?Q?SMI480l1fvp739HeOWue0uYBKLf+C7loB5xF9I59J0IFg5pAmgHvbZnqQ9Jh?= =?us-ascii?Q?qyT1jJZnfg9VmVdIDf54Y5TWrs7o7wvZPu2ifN1eIjUvY5eIVNMV2xz6g879?= =?us-ascii?Q?Et X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: QXb80HB1ezB4GG7TMoDEAfQy0ZFLaMqH1JMKR1FkThunAQAvp2DiGLroEa81HqXuISaCgH/5heMNe6fi0rnFTOWJhMIY2alNfYIS0SyFavEezYSF6cuFXNz9QZrJLycoLmU61esWj1kNFMPDfz/5y7wZnwGfaxdmIxPVYuQzr9pqB8/AdBQKAT77UKTdG5LOCKsWJgxm70CxbBfUwv8SfepWBa2bm7saRq0LNy0+s7GBtTBV0rObhFw1TEHzAE1rdqywyrCPdsRn6rCG2zvw/C+kPKpyOOCimlsfSBTzJ9Ar/SNpj9JGk+LpTvzDcJ1kh/naHBCIIfHhHSML3hDy9I7L2mWJHcRU4R4XnDXGQFXsG4QwFrUj+04uZaEAY8Jp3o0VMuXH6CveUQxmWHfLLsVHeMt+imZmBRX8t9zie7icsSD8sNKOvicla1fpT+dYbFDnCUCKsMQqyB4kIdsxNFEVL5ivrdNwQhqhu383MSVQL1Pcz2A55/bfYsmAIzEPSD6/lxRRZiKJa63SX0OZAFNyUxeBs7T4Sc0cVYHKD93dHCT9o5W9CjHY6PqMozMiP3KzBPpGuK3JEI4tcy7hLCXnYIPChbZ1QWfZbiMcEo8= 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: 97eee9b3-5b53-4662-4dcd-08dd239d7460 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Dec 2024 22:02:12.5433 (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: DEyOLSt2kXcPrx4Z5BezmEVmHO5sOKDiICljS7KTqBSrrE+OXLdW/Ug1PVGdFVh9XSVkqpNfcjrAqlXYq4qgRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4277 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_09,2024-12-23_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=732 adultscore=0 mlxscore=0 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2412230196 X-Proofpoint-GUID: rreVRG84gqjq_FW19v2XvcOlshwqbVrQ X-Proofpoint-ORIG-GUID: rreVRG84gqjq_FW19v2XvcOlshwqbVrQ Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-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_H3=0.001, RCVD_IN_MSPIKE_WL=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:148937 Archived-At: > I wrote a note to the bug report where this change had been discussed - > you are CC'd. That note is here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74700#34 I see from your note there that the OP here wasn't complaining that the cursor position changes to the beginning of the file name, on the same line; OP here was saying that it changes to the _buffer_ beginning (bob). That indeed sounds like a bug. FWIW, my code in Dired+ doesn't have that problem. It puts the cursor on the same line as it was, but at the beginning of the file name (like ordinary reverting in Dired). > > The 'revert-buffer' in dired also changes the position > > of the cursor (to the filename of the "actual" line). > > What is the idea of this? >=20 > Dired saves a lot of information to restore for reverting. Since the > file name point is on can appear on a different line after reverting, we > save the file name and, I think, don't care about the position to a finer > degree since it is not really relevant for the sake of dired commands. Yes.