mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-20 13:00:51 -07:00
(mac-ae-open-documents): Escape file name on conversion to URL.
This commit is contained in:
parent
59b715013e
commit
fc0a69d1e7
1 changed files with 4 additions and 1 deletions
|
|
@ -1616,7 +1616,10 @@ in `selection-converter-alist', which see."
|
|||
(let ((ae (mac-event-ae event)))
|
||||
(dolist (file-name (mac-ae-list ae nil 'undecoded-file-name))
|
||||
(if file-name
|
||||
(dnd-open-local-file (concat "file:" file-name) nil)))
|
||||
(dnd-open-local-file
|
||||
(concat "file://"
|
||||
(mapconcat 'url-hexify-string
|
||||
(split-string file-name "/") "/")) nil)))
|
||||
(let ((selection-range (mac-ae-selection-range ae))
|
||||
(search-text (mac-ae-text-for-search ae)))
|
||||
(cond (selection-range
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue