Function: send-to--format-items

send-to--format-items is a byte-compiled function defined in send-to.el.gz.

Signature

(send-to--format-items ITEMS)

Documentation

Format ITEMS into a user-presentable message string.

Source Code

;; Defined in /usr/src/emacs/lisp/send-to.el.gz
(defun send-to--format-items (items)
  "Format ITEMS into a user-presentable message string."
  (truncate-string-to-width
   (string-join
    (seq-map (lambda (item)
               (if (and (stringp item)
                        ;; Ignore url-handler-mode
                        (and (file-local-name item)
                             (file-exists-p item)))
                   (format "\"%s\"" (file-name-nondirectory item))
                 (format "\"%s\"" (truncate-string-to-width
                                   item 35 nil nil "…"))))
             items) " ") 70 nil nil "…"))