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

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

Patch from:
parent 2068905b
2012-10-20 Chong Yidong <>
* progmodes/flymake.el (flymake-create-temp-inplace): Use
2012-10-20 Eli Zaretskii <>
* 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)
"_" prefix
(and (file-name-extension file-name)
(concat "." (file-name-extension file-name))))))
(let* ((ext (file-name-extension file-name))
(temp-name (file-truename
(concat (file-name-sans-extension file-name)
"_" prefix
(and ext (concat "." ext))))))
(flymake-log 3 "create-temp-inplace: file=%s temp=%s" file-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