GNU bug report logs - #34074
27.0.5; flymake-proc delete temporary directory failed

Previous Next

Package: emacs;

Reported by: 林宝龙 <lbl52001 <at> gmail.com>

Date: Mon, 14 Jan 2019 15:01:04 UTC

Severity: normal

Found in version 27.0.5

Done: João Távora <joaotavora <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 林宝龙 <lbl52001 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.5; flymake-proc delete temporary directory failed
Date: Mon, 14 Jan 2019 10:55:28 +0100
[Message part 1 (text/plain, inline)]
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)
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 128 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.