# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1205658938 0 # Node ID 9833887c464da5cc3285139ab066f70309e2dbd5 # Parent 5818a522c583caac020f4e354563297c9985d42a (mac-service-open-file): Use file URL instead of file name string. diff -r 5818a522c583 -r 9833887c464d lisp/term/mac-win.el --- a/lisp/term/mac-win.el Fri Mar 14 19:38:46 2008 +0000 +++ b/lisp/term/mac-win.el Sun Mar 16 09:15:38 2008 +0000 @@ -2117,7 +2117,9 @@ (defun mac-service-open-file () "Open the file specified by the selection value for Services." (interactive) - (find-file-existing (x-selection-value mac-service-selection))) + ;; The selection seems not to contain the file name as + ;; public.utf16-plain-text data on Mac OS X 10.4. + (dnd-open-file (x-get-selection mac-service-selection 'public.file-url) nil)) (defun mac-service-open-selection () "Create a new buffer containing the selection value for Services."