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: Sun, 15 Dec 2024 05:59:40 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="_002_TYCPR01MB10004D03F975826578C1C923AFB3A2TYCPR01MB10004jp_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35181"; mail-complaints-to="usenet@ciao.gmane.io" To: 74881@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 07:00:20 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 1tMhfw-0008xy-9X for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 07:00:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMhfk-0005gW-K7; Sun, 15 Dec 2024 01:00:10 -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 1tMhfg-0005eD-F2 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 01:00:04 -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 1tMhfg-0007mg-5s for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 01:00:04 -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:Date:From:To:Subject; bh=mE9e51XufxztQk+0CxTB//QlyED3ywDtO9aS0BBaVkY=; b=hUNDlXQtNQxNCd+4GzCpC/E8frWvuntxvsZTlf6nTs3CKOxkVg1d5y5dhaObNMwsmR9cRPHgTm9Fw/eu7EcR9+vAxSAg2yNcStRDw6L+Go3WPFOKfZ+6jANCV4HLKiu6789/tiJCbelfnjNAAoG1B1IB/I303CROugk8SwuvlhV3Y9T+hjEL0vB0Y/QLcVVx13jDI7GQdvNtufgey8o1Ro31YS03TAAPoYFhW2frX5wZUfr+GS3ArrsCmZqjG9lF2GumuNOvTCBvSj0biNTwGKS31UzOKGTPPRK/I31JFU+FdF9wF1GMR9890dr9U4x31a4wU5DVkiEJX3XPcCTQtg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMhfe-0000qa-W4 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 01:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lin Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 06:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74881 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.17342423883197 (code B ref -1); Sun, 15 Dec 2024 06:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2024 05:59:48 +0000 Original-Received: from localhost ([127.0.0.1]:49284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMhfP-0000pV-TO for submit@debbugs.gnu.org; Sun, 15 Dec 2024 00:59:48 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMhfO-0000pN-IK for submit@debbugs.gnu.org; Sun, 15 Dec 2024 00:59:47 -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 1tMhfO-0005bH-BJ for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 00:59:46 -0500 Original-Received: from mail-japaneastazolkn190100000.outbound.protection.outlook.com ([2a01:111:f403:d405::] helo=TY3P286CU002.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMhfM-0007Zm-Jy for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 00:59:46 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sv6svi7rINL4uFri5b0IfmLMzpugdaeYlOYwv2+J/rcwaoGVCJSa8OIuIfrMh1EzaBa9Ckr5LQNxeNGCZH7cl61kG1MHa5LlVRKgRR1SOmYx29wANjG29sDqzhS6sd35OxjQyUvqjCCtoMlm0kFva2lzFPCmzZrOXdCFZ6Rqppl+nDO2dm97pI0i/XX0nXGBPUhNTznjteUgJvkF/Wqm5XK9PGGQFsgjTEac80tHrM3VZGVsevnXvcNCXJA13oBKmc3k/rrN8+NcINzIL6IfnRJd7t3wskJoJYfgQTMXmQJB9Hqu/3hU/hTRbrO2z3y89yNkkjT1Tk/mfqC+LSUkFw== 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=CTy2qrlrkOlShdraUkxo6H42XfVd7hSf6ffVBpK/CF8=; b=T3FuFxUxDGHeJCv9Osjzq8ZWnyF8Gx2pMhfGuuR1SZL3zW0B4JjoF5IZ6niH1lCCk7Bgk7fMv/rsdu/kI7jR9vdmOuhcKUxoIUnSSb2si1L1KNmjJeWgbrHgWyLZ8tOHysqR9GzsbCHmqb761QqjDc9CTkBrDbl3nYKc/ZDOM0sVyMIPGwUY0E1SJCdGYAbqEtiQ+qGE6jOTlE0oL70dvi4AIMhVDHXMyFZfLfBRyP1pEKuVq11AbnCpXVAKX18t1ovkSkb8j+AE9r39nv2iJ+h2AcI6RVfkNsPDY4MpYQMyLWzALp6vUOaqtO5KRrLIBircYWhiS1H84c35rnm5Ng== 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=CTy2qrlrkOlShdraUkxo6H42XfVd7hSf6ffVBpK/CF8=; b=lqOkgV0QcGZLjkYivg1++shrq7tZGCLDGA2EqYkLuQ5pz5sULWWBf8HE0GqnB2twWUSCAWF94Lpt2EI+zQjtLCIkwBFc33OM4XAtBPB0kLdT2K/4U5mejdsVQfeFL22lLfrMrV6+L0dWKaOZ1rUyrAC0Qgqd6i+ykZ8x2jBtyVbuKycyft4PbZiQUCnlhRCgC64+BVfGWF33W4MkLyDUyqFnUMEc6MDIkR1D7xgA+ztCEo33U5GMaMWJCTrhinDSDpiVUZbzN4sPj7GVifI48A4pR+hjI14fQEbTDR2KZ/2EIm7JpBUyUXc9yukzHlnLgkFRTWPrF7kCLLveUU0cpQ== Original-Received: from TYCPR01MB10004.jpnprd01.prod.outlook.com (2603:1096:400:1e8::14) by OS3PR01MB8892.jpnprd01.prod.outlook.com (2603:1096:604:17d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Sun, 15 Dec 2024 05:59:41 +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.8251.015; Sun, 15 Dec 2024 05:59:40 +0000 Thread-Topic: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs Thread-Index: AQHbTrQ6C9gBTPBRPkO0xoraS9YsXA== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYCPR01MB10004:EE_|OS3PR01MB8892:EE_ x-ms-office365-filtering-correlation-id: edf1aecf-2804-43fa-a1c6-08dd1ccdaa67 x-microsoft-antispam: BCL:0; ARA:14566002|19110799003|8060799006|15030799003|8062599003|461199028|6092099012|7092599003|15080799006|13095399003|440099028|3412199025|102099032; x-microsoft-antispam-message-info: 4TQQFGt2r7ZV0xWAsUskrsArIiLW5uWwwYwXP5c8/+qdIKu0DHCBV0bNopKUkv4VpjVeyK7KahGBE+2taAUNwZscjweaWWbcOoIrzA5Y6hHqddtxifQvOykCbReNm0b98UFoGYTCpN2hHsUmkqhYl/3bOFibkMq5HZeItJvNiAf/lPzV8iMHJdIpob1ApToWcaDUUeMzEvpTnrCJqyaqgXpCa5PfmwyfGceBLUtoMXsRjSh+lRXVV/dP/g1GkjAtGjNDKDTq4yPp8UfNpS8ETJcHfn9gUZNwijs0OzeB66krmd2za+Wb+uzcx8Kv+XYpTA2o2h7awWonks/TDleiZFL8M/qjKwTroVWzlFUHI2WV/vj4uWj3d7YdNrXDzRhqeM+AwMsaGLv+HOTRQaHZVdBwfX5cOCGVCwIX0c39pDsWtjFFuKer7bgkpdDQzJkLGaTSpx294udeIcA59qBbxaDLFrm4VaXPX4cE6phYoSI8UvJNYfwqPtxNuvK/eEG09uMHkqsFQGnXs1DN1POQ5bz4rD8qQ2z9vaIZTskfUrqGo+UB14kD/ljy41x9uM7zVLB7rW0x959zCqlNozFAqVLQ2pGjvA+rNmyLevZG9u2AJ1XnaF5JQePm2loCrChbU/s41URvtRzycKljsvnNCvKYsNKLMKlCg80eEfRoJpx+0bdiENS+xEJsec+KXA6Yg8LjmpQ9CobSKk3RC+fvzj6qi4lWig3nAc2M83ugqM48/IGiX1tCMEbiKG4bx eQjNJ871hDIhohN54JLmiXPHiaJOyDKC/jM7oua737dxrzyHBDK66dJ+E9Y2sgvGyJ94zrLk58QyFURNIbpXE2zQnraw10vSta x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: w1rzcOqSY7OzyOV+sr99uZCf4P9W30brnf5njFNpvUmoUFGNMK0+7dpsesVQyjrbb+FpcQ2sFsrBoFg6nPLHm+qsPpIMSEurdLA0sYNmB7cCqeUrvfyOxklQDFExwuBL8pr5q6tdk0cy7Dj/df7ea1zL4itq4DQzOhnHmKVuow3/c/P6GBd1uXFKAjdaCa28pPLtnICFAhaHAKiVlspGfxYINx+Bg/bwOu1DOX2St9zOJRucdFcNy2gk4Eid7OXl1Y1j5humLhdekSmD6n7Y41d7xJBYSVPOGEcPJYeSDs36NoAEUXS5rB8ItAQePi5cWvjsrxRwzsKBKdQknZagloQZl1e/AKfeor47G80D5vYkWkAgNxnsP3lWleEd3rHLBs9+A+Sx819oZ5a1TztnQTWr/yAlCxuhniKOkD1GVzi0fVIqLeYHrKj9y+aXbvKt3/a3ueCUWayk4gx3gaHqekEVSUH9zPoMPR5LDahmlMhoYXwHl33neryLReNX4ZYoFy1KbLIQ+XY4z7+EopaK2rDxqPxYWGLFKmiVdzJkiEOqOKArZd06y6Y44D4FfoM3+0Sks3HrRFpkCxRCnGzas0I0EQhh7NBr/vgFHStlzni+BzfH4VNgfLw9MNuIwkFM3dL52uF87E6AXJiHJFJivfE7KcbhCb7R7ojVU/t7IOoUYKu0DtSmhFksZod34TcTvhb6FxPtTZQiwOm3fERFBY4WwZ0OEVIbKD/cJmK9kJ3jKjtyksE84wji2A x/4TxyuCs1QJIt3nF07TOMvsmY+2ac6z5fjhFbwkGrXR4tOpBivw2K96f/n1gEbAURrTEaEt2qNYjEZm7/IWjGmuwPtOcu9e8y 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: edf1aecf-2804-43fa-a1c6-08dd1ccdaa67 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Dec 2024 05:59:40.9080 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB8892 Received-SPF: pass client-ip=2a01:111:f403:d405::; envelope-from=sunlin7@hotmail.com; helo=TY3P286CU002.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:297084 Archived-At: --_002_TYCPR01MB10004D03F975826578C1C923AFB3A2TYCPR01MB10004jp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The ediff lefts temporary files "/tmp/fineDiff*" when kill emacs during an = ediff comparing.=0A= =0A= Reproducing steps:=0A= =0A= 1. echo 0 > /tmp/0; echo 1 > /tmp/1=0A= =0A= 2. emacs -nw -q -f ediff-files-command /tmp/0 /tmp/1 =0A= =0A= on the ediff control buffer, press "n" to move to first difference; there s= hould have two temp files like /tmp/fineDiffA* and /tmp/fineDiffB*=A0were g= enerated by ediff, stay on the ediff buffer (do not press "q" to quit the e= diff session). then=0A= =0A= 3. Press "C-x C-c" or kill-emacs to quit the emacs directly.=0A= =0A= Then two temp files /tmp/fineDiff* were left there.=0A= =0A= This patch will make sure the temp files be removed when kill-emacs without= quitting the ediff session.= --_002_TYCPR01MB10004D03F975826578C1C923AFB3A2TYCPR01MB10004jp_ Content-Type: text/x-patch; name="0001-lisp-vc-ediff-util.el-Remove-temp-files-on-kill-emac.patch" Content-Description: 0001-lisp-vc-ediff-util.el-Remove-temp-files-on-kill-emac.patch Content-Disposition: attachment; filename="0001-lisp-vc-ediff-util.el-Remove-temp-files-on-kill-emac.patch"; size=1195; creation-date="Sun, 15 Dec 2024 05:57:20 GMT"; modification-date="Sun, 15 Dec 2024 05:57:20 GMT" Content-Transfer-Encoding: base64 RnJvbSBkZWU5NzUwMTQ0ZGY2Y2RkODI3Mzk3ZjNkOTdlNzRmNTZlMjVlMWZhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBT dW4sIDE1IERlYyAyMDI0IDA2OjUy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