From unknown Tue Aug 19 09:34:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34074 <34074@debbugs.gnu.org> To: bug#34074 <34074@debbugs.gnu.org> Subject: Status: 27.0.5; flymake-proc delete temporary directory failed Reply-To: bug#34074 <34074@debbugs.gnu.org> Date: Tue, 19 Aug 2025 16:34:55 +0000 retitle 34074 27.0.5; flymake-proc delete temporary directory failed reassign 34074 emacs submitter 34074 =E6=9E=97=E5=AE=9D=E9=BE=99 severity 34074 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 14 10:00:16 2019 Received: (at submit) by debbugs.gnu.org; 14 Jan 2019 15:00:16 +0000 Received: from localhost ([127.0.0.1]:59182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gj3ip-0006Hz-Vv for submit@debbugs.gnu.org; Mon, 14 Jan 2019 10:00:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giyyC-0004x0-LI for submit@debbugs.gnu.org; Mon, 14 Jan 2019 04:55:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:43669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1giyy7-0003rw-Cn for submit@debbugs.gnu.org; Mon, 14 Jan 2019 04:55:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giyy6-00040D-Jk for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 04:55:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_40, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_EXCESS_BASE64,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giyy5-0003qs-Q4 for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 04:55:42 -0500 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:39732) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giyy5-0003pD-KZ for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 04:55:41 -0500 Received: by mail-oi1-x22a.google.com with SMTP id i6so17373034oia.6 for ; Mon, 14 Jan 2019 01:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=24vGCjjtITFzmpu7GwmEv4W4M2akkdzKmtfe4RQW4Ng=; b=Pb4TMPR21S749CTtPfifNKSZWTQMevSCENGAY3FHKn9ZuLz88FsYOzaGFh9gFRdiXD VKhcKvttU7zpQZI/TP2ZJv7dv6DsAsa/Qh4cf8O4fZqsqgV0FFRBTqRA/1oTZOUApoJi lOKYJdi4o6sa+i+NF24IgZedyF2eyOuxrjbxCri0JXDGM05CICMVzmnS6XjBuRK/rrrb /Ami7kIBaIFjuEBB4tazFpDBVGeapH9T6URyMhbjbBNfBEADLuM0XfuPA8Rqqh2YboTI TNXluQ1ogHt5gyfG5B1RpqMizassVVlg7Wc1AmjBe7dhGpz+8fcVQVBWDbEGRvp/dnqe Uorw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=24vGCjjtITFzmpu7GwmEv4W4M2akkdzKmtfe4RQW4Ng=; b=HdtllHuwlS0S0MvAdBIPbW9gIDf97nFgBhp/9kwOTZSW029OcD92zVh7jyH5tg7mpX RqxHtmeq75lku+zi+DdSKsFCVNr3u6Aoerv/2p/oKv5vz+7qSoET/9MN6VxlsiQN1+Tl XaxwQiIF6YUjApQAcIkAUJ1Sv5nJB1nPM5k4jX/u/JXZ7NHwW29X306RAGMv1HuXYnuH 6M9DI8VTDT3rbV0tLBiS00EiWKQqS0ZXoMfK3eo6hHjHSF/ZKjHEdrQ0M4aBPUm+a486 DsCAL2bjDJMpdvSoGeJSnRBN8zSInkPVuK8KJNn6chi2tkGQnhezGdpyJMjuMjiqBuWI nVCw== X-Gm-Message-State: AJcUukcaee4Hetx8GW67rb8hIvrqihDh8jwT0O1P83lGYjRY08braMeO uf04Xw+6ZeYP2G3Y+kdWMwquMvNBEFls7u8CUaPVjfdB X-Google-Smtp-Source: ALg8bN5AepcDl4QRzAtQG5CIxTU6EbPZKkiCWD3D4rqtvsvJwF6hU3kk3rRMoCTQ9QvCFH0Ag9vbdp8TiKbc5JHsigE= X-Received: by 2002:aca:4282:: with SMTP id p124mr14822810oia.327.1547459738742; Mon, 14 Jan 2019 01:55:38 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?5p6X5a6d6b6Z?= Date: Mon, 14 Jan 2019 10:55:28 +0100 Message-ID: Subject: 27.0.5; flymake-proc delete temporary directory failed To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000000834fb057f680c14" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22a X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The temporary-file-directory on my host is "/tmp/", current function trancates the first charactor of the directory name, cause the directory not exist error. Below patch removes the folder separator of the temporary-file-directory, works fine in my environment. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (lbl52001[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (lbl52001[at]gmail.com) 0.0 HTML_MESSAGE BODY: HTML included in message 0.1 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 14 Jan 2019 10:00:09 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) --0000000000000834fb057f680c14 Content-Type: text/plain; charset="UTF-8" The temporary-file-directory on my host is "/tmp/", current function trancates the first charactor of the directory name, cause the directory not exist error. Below patch removes the folder separator of the temporary-file-directory, works fine in my environment. diff --git a/lisp/progmodes/flymake-proc.el b/lisp/progmodes/flymake-proc.el index 7cdbb266fe..f0b979185e 100644 --- a/lisp/progmodes/flymake-proc.el +++ b/lisp/progmodes/flymake-proc.el @@ -886,7 +886,7 @@ can also be executed interactively independently of (defun flymake-proc--delete-temp-directory (dir-name) "Attempt to delete temp dir created by `flymake-proc-create-temp-with-folder-structure', do not fail on error." - (let* ((temp-dir temporary-file-directory) + (let* ((temp-dir (directory-file-name temporary-file-directory)) (suffix (substring dir-name (1+ (length temp-dir))))) (while (> (length suffix) 0) --0000000000000834fb057f680c14 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

The temporary-= file-directory on my host is "/tmp/", current function trancates = the first charactor of the directory name, cause the directory not exist er= ror.

Below patch removes the folder separato= r of the temporary-file-directory, works fine in my environment.
=
diff --git a/lisp/progmodes/flymake-proc.el b/lisp/prog= modes/flymake-proc.el
index 7cdbb266fe..f0b979185e 100644
--- a/lisp/progmodes/flymake-proc.el
+++ b/lisp/progmodes/flym= ake-proc.el
@@ -886,7 +886,7 @@ can also be executed interactivel= y independently of
=C2=A0
=C2=A0(defun flymake-proc--de= lete-temp-directory (dir-name)
=C2=A0 =C2=A0"Attempt to dele= te temp dir created by `flymake-proc-create-temp-with-folder-structure'= , do not fail on error."
-=C2=A0 (let* ((temp-dir=C2=A0 =C2= =A0 temporary-file-directory)
+=C2=A0 (let* ((temp-dir=C2=A0 =C2= =A0 (directory-file-name temporary-file-directory))
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0(suffix=C2=A0 =C2=A0 =C2=A0 (substring dir-name (1+ (l= ength temp-dir)))))
=C2=A0
=C2=A0 =C2=A0 =C2=A0(while (= > (length suffix) 0)
--0000000000000834fb057f680c14-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 17 09:58:22 2019 Received: (at 34074) by debbugs.gnu.org; 17 Jan 2019 14:58:22 +0000 Received: from localhost ([127.0.0.1]:35187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gk97e-00050U-Bu for submit@debbugs.gnu.org; Thu, 17 Jan 2019 09:58:22 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:32893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gk97b-000509-EM; Thu, 17 Jan 2019 09:58:20 -0500 Received: by mail-wr1-f51.google.com with SMTP id c14so11401948wrr.0; Thu, 17 Jan 2019 06:58:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=dGQDQv/QERCVAQlcUV2t1Gt5j7kctTu1yISSECWeyXg=; b=raqeUxaNj4/Nsy1FvcABLyS8S8eJBtJktBOf7C6FDjGEZgL4oSlAgcrm5cK4IqmFCP avS4+3WdRolHww9Hac+P5MWX5zJfB5Dh799wrUGgO0flgx+L5qvGyzhaBRYIJVuJH7AP 3i8B76Cd2Fsc+gM0rQiLutJmhDu6la47Nt/BEIhy9oZDCfN1IF+JWRwEWZn9cNlEOEEj RAooFjD/5W0ebMEEBdhEnQDwuI3BCMecnY/phbpwqxL/cbX5FuQ1M5Y61Zl1ELfj3p/l QkW+4TeLZ+/7TRkyTy//8bikSnuVLElGc+Zr+5ZT+B1qCB3RTMMDi9Onf/sJhnAQgffM WZoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=dGQDQv/QERCVAQlcUV2t1Gt5j7kctTu1yISSECWeyXg=; b=QTejDnXeKsw+veQ9ZEyEx+IKtPm7ZpxyTzX/kZihmEa8og3CW49vInQ5ZQCCCudkpE AxARVfIGTsZMPtZlbkMTpXh8AUK8mQMPqVAwvOEfQyiJSGBTeVMMham0J1+Wi0bHx0yD t+ihjsw1Ouio6GSgt3BUZnPZhwQfJWjV1Ja6gODvgvpZAB2RpxZW9Ifn5EjhWfbDw9hq JQy4W5Q+djHRIeYhPYc1SLq18DNd+WwEer31iwn4BEnqbwOi9uDuYZE1RdMFYa3nzmys jTTvU6DTeEbsSba807O/lzo4JIrYBfAsjfkXlABq0S7oTluIuREDqe1jqVARYHtebCwc v6gw== X-Gm-Message-State: AJcUukcpTbqHr1cA6V5gTpz3a7lTBNpw6FER148alSqSfptE27CyfAdN Trogizigi8615lxcmyA+ymar3chA X-Google-Smtp-Source: ALg8bN5s4XRi2BCvyjwPw37XfrLq+CEx7pWOP3LiZ0k1itfzxtLhKvLo4/DUUqfrrVTgOX7jJpIukw== X-Received: by 2002:a5d:6152:: with SMTP id y18mr13047688wrt.141.1547737093182; Thu, 17 Jan 2019 06:58:13 -0800 (PST) Received: from GONDOMAR.yourcompany.com (mail3.siscog.pt. [195.23.29.18]) by smtp.gmail.com with ESMTPSA id m21sm31564727wmi.43.2019.01.17.06.58.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 06:58:12 -0800 (PST) From: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= To: =?gb2312?B?wdaxpsH6?= Subject: Re: bug#34074: 27.0.5; flymake-proc delete temporary directory failed References: Date: Thu, 17 Jan 2019 14:58:09 +0000 In-Reply-To: (=?gb2312?B?IsHWsabB+iIncw==?= message of "Mon, 14 Jan 2019 10:55:28 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Antivirus: AVG (VPS 190117-0, 17-01-2019), Outbound message X-Antivirus-Status: Clean X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34074 Cc: 34074@debbugs.gnu.org, 34074-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =E6=9E=97=E5=AE=9D=E9=BE=99 writes: > The temporary-file-directory on my host is "/tmp/", current function > trancates the first charactor of the directory name, cause the > directory not exist error. > > Below patch removes the folder separator of the temporary-file-directory,= works fine in my environment. Thanks, I pushed a slightly safer fix in commit 80cbfb61c5a562d51197d6f3068fa5f4cda432b0 Author: Jo=C3=A3o T=C3=A1vora Date: Thu Jan 17 14:38:44 2019 +0000 Fix flymake-proc--delete-temp-directory if temp dir ends in slash From unknown Tue Aug 19 09:34:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 15 Feb 2019 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator