Variable: embark--associated-file-fn-alist

embark--associated-file-fn-alist is a variable defined in embark.el.

Value

((file . identity)
 (buffer .
	 #[257 "\300!\301!\206
�\302\303\"\207"
	       [get-buffer buffer-file-name buffer-local-value default-directory]
	       5 "\n\n(fn TARGET)"])
 (bookmark .
	   #[257 "\300\301\"\206�\300\302\"\207"
		 [bookmark-prop-get location filename]
		 4 "\n\n(fn TARGET)"])
 (library . locate-library))

Documentation

Alist of functions that extract a file path from targets of a given type.

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defconst embark--associated-file-fn-alist
  `((file . identity)
    (buffer . ,(lambda (target)
                 (let ((buffer (get-buffer target)))
                   (or (buffer-file-name buffer)
                       (buffer-local-value 'default-directory buffer)))))
    (bookmark . ,(lambda (target)
                   ;; Do not use `bookmark-location', which can return the
                   ;; invalid string "-- Unknown location --".
                   (or (bookmark-prop-get target 'location)
                       (bookmark-prop-get target 'filename))))
    (library . locate-library))
  "Alist of functions that extract a file path from targets of a given type.")