Function: send-to--convert-item-to-filename

send-to--convert-item-to-filename is a byte-compiled function defined in send-to.el.gz.

Signature

(send-to--convert-item-to-filename ITEM)

Documentation

Convert ITEM to a filename.

Unless ITEM is a verifiable filename, save its content to a file and return its new timestamped filename.

Source Code

;; Defined in /usr/src/emacs/lisp/send-to.el.gz
(defun send-to--convert-item-to-filename (item)
  "Convert ITEM to a filename.

Unless ITEM is a verifiable filename, save its content to a file and
return its new timestamped filename."
  (if (and (file-local-name item) ;; Ignore url-handler-mode
           (file-exists-p item))
      item
    (let ((filename (concat temporary-file-directory
                            (format-time-string "%F_%H.%M.%S") ".txt")))
      (with-temp-file filename
        (insert item))
      filename)))