Function: image-mode-copy-file-name-as-kill
image-mode-copy-file-name-as-kill is an interactive and byte-compiled
function defined in image-mode.el.gz.
Signature
(image-mode-copy-file-name-as-kill)
Documentation
Push the currently visited file name onto the kill ring.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image-mode.el.gz
(defun image-mode-copy-file-name-as-kill ()
"Push the currently visited file name onto the kill ring."
(interactive)
(unless buffer-file-name
(error "The current buffer doesn't visit a file"))
(kill-new buffer-file-name)
(message "Copied %s" buffer-file-name))