Commit 79e1997a authored by Arne Jørgensen's avatar Arne Jørgensen Committed by Chong Yidong

* progmodes/flymake.el (flymake-create-temp-inplace): Use file-truename.

Patch from:
http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00444.html
parent 2068905b
2012-10-20 Chong Yidong <cyd@gnu.org>
* progmodes/flymake.el (flymake-create-temp-inplace): Use
file-truename.
2012-10-20 Eli Zaretskii <eliz@gnu.org>
* loadup.el: Update comment about uncompiled Lisp files. (Bug#12395)
......
......@@ -1535,10 +1535,11 @@ if ARG is omitted or nil."
(error "Invalid file-name"))
(or prefix
(setq prefix "flymake"))
(let* ((temp-name (concat (file-name-sans-extension file-name)
(let* ((ext (file-name-extension file-name))
(temp-name (file-truename
(concat (file-name-sans-extension file-name)
"_" prefix
(and (file-name-extension file-name)
(concat "." (file-name-extension file-name))))))
(and ext (concat "." ext))))))
(flymake-log 3 "create-temp-inplace: file=%s temp=%s" file-name temp-name)
temp-name))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment