GNU bug report logs -
#34074
27.0.5; flymake-proc delete temporary directory failed
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34074 in the body.
You can then email your comments to 34074 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34074
; Package
emacs
.
(Mon, 14 Jan 2019 15:01:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
林宝龙 <lbl52001 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 14 Jan 2019 15:01:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[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)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34074
; Package
emacs
.
(Thu, 17 Jan 2019 14:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 34074 <at> debbugs.gnu.org (full text, mbox):
林宝龙 <lbl52001 <at> gmail.com> 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ão Távora <joaotavora <at> gmail.com>
Date: Thu Jan 17 14:38:44 2019 +0000
Fix flymake-proc--delete-temp-directory if temp dir ends in slash
Reply sent
to
João Távora <joaotavora <at> gmail.com>
:
You have taken responsibility.
(Thu, 17 Jan 2019 14:59:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
林宝龙 <lbl52001 <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 17 Jan 2019 14:59:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 15 Feb 2019 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 66 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.