Function: flymake-proc-create-temp-with-folder-structure

flymake-proc-create-temp-with-folder-structure is a byte-compiled function defined in flymake-proc.el.gz.

Signature

(flymake-proc-create-temp-with-folder-structure FILE-NAME PREFIX)

Aliases

flymake-create-temp-with-folder-structure (obsolete since 26.1)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/flymake-proc.el.gz
(defun flymake-proc-create-temp-with-folder-structure (file-name _prefix)
  (unless (stringp file-name)
    (error "Invalid file-name"))

  (let* ((dir       (file-name-directory (file-name-unquote file-name)))
         ;; Not sure what this slash-pos is all about, but I guess it's just
         ;; trying to remove the leading / of absolute file names.
	 (slash-pos (string-match "/" dir))
	 (temp-dir  (expand-file-name (substring dir (1+ slash-pos))
                                      temporary-file-directory)))

    (file-truename (expand-file-name (file-name-nondirectory file-name)
                                     temp-dir))))