Fix Bug#45518 in compile.el
* lisp/progmodes/compile.el (compilation-get-file-structure): Avoid call of `file-truename' for remote files. (Bug#45518)
This commit is contained in:
parent
ae2e2b6acd
commit
4ce5646d59
1 changed files with 6 additions and 1 deletions
|
@ -3041,7 +3041,12 @@ TRUE-DIRNAME is the `file-truename' of DIRNAME, if given."
|
|||
;; Get the specified directory from FILE.
|
||||
(spec-directory
|
||||
(if (cdr file)
|
||||
(file-truename (concat comint-file-name-prefix (cdr file))))))
|
||||
;; This function is active in `compilation-filter'.
|
||||
;; There could be problems to call `file-truename'
|
||||
;; for remote compilation processes.
|
||||
(if (file-remote-p default-directory)
|
||||
(concat comint-file-name-prefix (cdr file))
|
||||
(file-truename (concat comint-file-name-prefix (cdr file)))))))
|
||||
|
||||
;; Check for a comint-file-name-prefix and prepend it if appropriate.
|
||||
;; (This is very useful for compilation-minor-mode in an rlogin-mode
|
||||
|
|
Loading…
Add table
Reference in a new issue