mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
Make flymake-proc--delete-temp-directory slightly safer
* lisp/progmodes/flymake-proc.el (flymake-proc--delete-temp-directory): Temp dir name may be abbreviatated, so expand it first (bug#46203).
This commit is contained in:
parent
03124c4201
commit
9225599ca7
@ -903,7 +903,7 @@ can also be executed interactively independently of
|
||||
|
||||
(defun flymake-proc--delete-temp-directory (dir-name)
|
||||
"Attempt to delete temp dir DIR-NAME, do not fail on error."
|
||||
(let* ((temp-dir temporary-file-directory)
|
||||
(let* ((temp-dir (file-truename temporary-file-directory))
|
||||
(suffix (substring dir-name (1+ (length (directory-file-name temp-dir))))))
|
||||
|
||||
(while (> (length suffix) 0)
|
||||
|
Loading…
Reference in New Issue
Block a user