Function: f-this-file

f-this-file is a byte-compiled function defined in f.el.

Signature

(f-this-file)

Documentation

Return path to this file.

Source Code

;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
;;;; Misc

(defun f-this-file ()
  "Return path to this file."
  (cond
   (load-in-progress load-file-name)
   ((and (boundp 'byte-compile-current-file) byte-compile-current-file)
    byte-compile-current-file)
   (:else (buffer-file-name))))