From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lin Sun Newsgroups: gmane.emacs.bugs Subject: bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs Date: Fri, 27 Dec 2024 05:38:57 +0000 Message-ID: References: <86h675s77g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14200"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "74881@debbugs.gnu.org" <74881@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 27 06:40:23 2024 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 1tR35D-0003YE-BZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Dec 2024 06:40:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR34w-0006iQ-TY; Fri, 27 Dec 2024 00:40:07 -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 1tR34s-0006fU-Iq for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 00:40:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tR34s-0003Bn-5y for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 00:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:In-Reply-To:References:Date:From:To:Subject; bh=eIMcBQsQKowbwukUlv3D8Sn/dVUhy9i3uZIxkHjUgbY=; b=KYAAzm4QK8PU7iC8EzAaBrimgq2F1Rx6XiYFDHY1YAdv/4GoRTujz7tp2bi76eMHGU2aEJMCqDkEnZe1+ZjmoxjDZHymSUyJXGNPj1orug++zxczcyqKL2XQr2R2dnh3BZyRIozOU91GoguZy2cyiXbUTCbio6C7Bbhpm0+N7/1lGRv4cBrOHi3ft/YsuHjizyA50g4WkS6TictIfY7J0pdsjwtzGLlnCqTzhRZiyuvr9raAMMY72y9uapy5hf2Ai963QKLb1SW2TnK1mZdR48QXBbh9Wa6fOyTH8zNs2I0N8hZdlYrXKy0boEzU0qkNNh5K4+WwfHkl26Ld8H6LOg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tR34r-00039X-W6 for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 00:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lin Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Dec 2024 05:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74881 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74881-submit@debbugs.gnu.org id=B74881.173527794812040 (code B ref 74881); Fri, 27 Dec 2024 05:40:01 +0000 Original-Received: (at 74881) by debbugs.gnu.org; 27 Dec 2024 05:39:08 +0000 Original-Received: from localhost ([127.0.0.1]:44382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tR33z-000388-RZ for submit@debbugs.gnu.org; Fri, 27 Dec 2024 00:39:08 -0500 Original-Received: from mail-japanwestazolkn19010006.outbound.protection.outlook.com ([52.103.66.6]:18030 helo=OS0P286CU011.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tR33x-00037Z-LE for 74881@debbugs.gnu.org; Fri, 27 Dec 2024 00:39:06 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Vn3rgVnJzkwGNBa2Te+/rFc4U4H2ueOpcobXG2M/3FBDAb1YqhO0xNG5DWcbrDCGgp87jYLDb9ba/s2xj99YAcFPH9VfQqkRtSp4HsliMZoG5xCu4FXg8Rl7j8jRhA9t2irjjIk0DpJ0mmEH0TVSXblvXf8QM2NSbFTjL++H163jXSCGTWrYCJDuDLP3IkGdhg0H5WMVkeheJMnmu9wNkQiEEhUsaS7ut8IBcN23CYR7YGRd0YL99802IUKIGQD+c7aBeEqHF7WN3QEj3e7Aqr8OH1WZM9/2QWx+NezI7SAtBKVnIsCbErgxwrhQ6zpeo4yPVExoCgdUkkAt8nO3tw== 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=eIMcBQsQKowbwukUlv3D8Sn/dVUhy9i3uZIxkHjUgbY=; b=TKMTGe+3tYuaMQUGzZStPw2xlLcCCI5rpSv01W1Z9L4NzikPfb8wOdKIkfHmBDTCAIDfqAEUJLl3jFBf7/9m8bIDS1VTJsKQR0I5qMotg64NKQE5wYNCAcQLPjyhiMmbFX88Tngz7DWjPsH/yhK4BQDq5oELHCbJ3eDrwUNSe0d0OYJLjAkq/zqkogFWVYcX74EwCZjBBNsXfJU/mwidd4eX0z1WTTvt1tuN/GRnuT7cNo/WR+MDNu0/R3EcrV2DkGN9QcAUQQVsOTT38AIKNZrzfKPES45uPkiiRYSY0IC1M+1E3mritWFint/J1XTUDDErWZCfBteVA6oNp7Dgow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eIMcBQsQKowbwukUlv3D8Sn/dVUhy9i3uZIxkHjUgbY=; b=WRvGY1vEWOXfeR50iiWMKKG1MA8mWQjMW6S0+VyzAXRFMpWhFjnmQBsHElSRqU4J78Izl7tQ4Fls3jhvRoWk9rgU+CLqzAyc1ClWMyx7LR+pjcsn5kQnzUw9XY0qUzY18rdTFSouPerM5LP5XaNPzll8pAdgCvueDysCJ7AzHI9xfhaGxeXmthjmaTHZfXwolRTBq3riRshmc8agF98SYo02KBFx2tDHFvTSPQlchUG2tHqTrljkjvD0V1dpJkWL5MNl8WdLkqgrfrZgdW/hF0qaAgssgNeeVdLZTYsww9Yovy7PVyz7pA4wt53wfQE+SYLxgwtG0r2WTwKyl8CD0w== Original-Received: from TYCPR01MB10004.jpnprd01.prod.outlook.com (2603:1096:400:1e8::14) by TY4PR01MB12719.jpnprd01.prod.outlook.com (2603:1096:405:1e9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.15; Fri, 27 Dec 2024 05:38:57 +0000 Original-Received: from TYCPR01MB10004.jpnprd01.prod.outlook.com ([fe80::8ecd:43a5:333:1c8]) by TYCPR01MB10004.jpnprd01.prod.outlook.com ([fe80::8ecd:43a5:333:1c8%7]) with mapi id 15.20.8293.000; Fri, 27 Dec 2024 05:38:57 +0000 Thread-Topic: bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs Thread-Index: AQHbTrQ6C9gBTPBRPkO0xoraS9YsXLLm8oALgACRi4WAEiBNpg== In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYCPR01MB10004:EE_|TY4PR01MB12719:EE_ x-ms-office365-filtering-correlation-id: 71ccb613-efb2-4c8c-5ec6-08dd2638c230 x-microsoft-antispam: BCL:0; ARA:14566002|15080799006|461199028|8060799006|8062599003|15030799003|7092599003|19110799003|440099028|3412199025|102099032; x-microsoft-antispam-message-info: GQ+NxDi4qc/aWfl7mcP81qTGlYKmFqPold0Dn9x2a/msVkwGNI6IkHIxRL0s6pyePZVJVtC1BcJ45m0bId1b+9rxoLaFFgnHpW/rt8N27dD6dlZ5jU8QCcguSMIA6LR5m/W3aDckSbzXxykHIvJsxUjYLT5twS0yzFBdinCrkV3K3TpyT/NJpRmMkjbu5wIdj55Oi3W4jpk9hQug8xZMqBZSPfPkwngZf5HHOkxJ1vxv5yKQsl5DDggfOQT8LH2PMSTU378kv+7GgsFqRJhjcO6tOi2s+tq+/3YBLRQNIVu+S2c4bgJBDW+uAqOqZ8YRBcQiTXn67eyCdRQDrBXjwakcISgk21HMrDcjAGIc6sF7dDMJxb78qUPjyEcz+6saFYeX3V+/eeKkg4wQxft6zxy8201fP60jFvcYXlsj3GBiVuX7CZTGUNHFnWGLFJ8pm7CaOV7hx7mvr4bnUZkD0OoZhy7fStinmvncJwQYGGO7LfyPPqFAsUnRdbQ/eB+vKnED24YJobgVt8e7hu6dOtgT/Ljg8nNpfqOx7mJmz8vIWcCSvy4OQ0lKIHyIZDDKdfavKmVF5biYoJYChYDb0UlOptOQT/8CfCj0t/NpNsIiQOqdOKWjA4fB0uy2dpCAv2MrskUuToKYK+1KU5fX59qpv+OC2B9z9VuNPovpJ2I7BSDOPsmHJ9HLOVfCwceUmCB+gtFOYDexf3mS6ZNDyWKLlih3Yk5W/fctf3PizwG6ik/UPYBHIBO5BSOYm OnMRRVNx6FWHOVPyuSHiyH5EKUyXfB/+WSDOlrejNq02ZOgSsrCUEciHE5wyDSlY2QOdWMy+AfVx1NFQQZb1MWMZ2eKK90p6qF x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: fzCxUB7UZzXbnmxv1dzHFjUo7SlwInuUfQrJAmPtEk7k7NeCROE815J6owka7OE40lU1UD8eC6FFNzoo/p2Q/KwejmUhJVAEFq4zVjQKx38S7RK2JopGRqr+ZA3wtqj70CmaEeIxvMyvTY+ZvK/pHnGkDKBWQpPCFL0/iw8Zf0kLgMjldCM6XUb8qbUYBwVsPLECLKFD7gc6JLCrQ8E4URc+5fNzOU3wFaQf81TUE4Why8518WHYDjzNJuNRdyox84Ge25dB1aN5J38oUmNSBr21Ujm1LuupZqr79ylLFuKYBJ4aN19rm2+dPFNJHGAlM/smnhaxlHVvrRfwsv7GGnGh8pQoa22Ra03VBnyQzqv6ukiGLTWzmRLQyCiHv0bvERRMSdGrbXfnvMPHsCSaxcYrBHDJBMOvHpLYIz06fTtU0KswLo4CA9TG75nC9zKYQplTlj+psCBpFJsw1LkF5Fvv/o8IqbRSV5alWjFijjPWiz1v8SePbNWHymWeGMuZTEffVyWfpWSWB/8dYX+LAZnBr/WXLczO96Mg9Gzt58qMDm5j+ZfK9ywvqa0bbhMpeVd+xiHI2GGkc9o8qxIigOGmWoiZ9ESk1erIY5FjARQNG7pBYYKQKtmidCURdt1GArmZjroggFKv9fwJhSpmJNQ8TwOpTQ0/zr48fPm191SqSl2gvRvIqN1mY+llZU+oRfPqwt/zglD/l2+QVLnBKnU8oE4jccrJYbdwhFTgkcAMVNpnAVcY8BTtG+ +Tc5SkibJEWgJQ09N7n6nExifStLpphq6uq6GMZ12sNtqRPPS4cdgW7kWOCPjz1pm3HUF54sWZcVKT8K5PADBfWeO7nbW7kMoI X-OriginatorOrg: sct-15-20-7719-20-msonline-outlook-15995.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10004.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 71ccb613-efb2-4c8c-5ec6-08dd2638c230 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Dec 2024 05:38:57.4114 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY4PR01MB12719 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:297800 Archived-At: Hi Eli,=0A= =0A= I checked the "ediff-delete-temp-files", it should be safe for executing.= =A0 Is it more safe to wrap it with `ignore-errors`=A0? Like: =0A= =0A= +(defun ediff--delete-temp-files-on-kill-emacs ()=0A= + "Delete the temp-files associated with the ediff buffers."=0A= + (dolist (b (buffer-list))=0A= + (with-current-buffer b=0A= + (when (eq major-mode 'ediff-mode)=0A= + (ignore-errors (ediff-delete-temp-files))))))=0A=