Always return a list from send-to--collect-items

* lisp/send-to.el (send-to--collect-items): Return singleton list, not
a string directly.
This commit is contained in:
Pip Cet 2026-05-30 12:11:14 +00:00
parent 44fa1595ce
commit 08336b9a55

View file

@ -222,7 +222,7 @@ From any other buffer, either of these two, in order of preference:
(region-beginning)
(region-end))))
((thing-at-point 'existing-filename)
(thing-at-point 'existing-filename))
(list (thing-at-point 'existing-filename)))
((buffer-file-name)
(list (buffer-file-name)))))