From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: "Ronald W. Heiby" <heiby@yahoo-inc.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Mac: Services, Emacs, Open Selected File
Date: Sat, 15 Mar 2008 08:56:57 +0900 [thread overview]
Message-ID: <wly78kzwom.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <47DA26A4.30906@yahoo-inc.com>
>>>>> On Fri, 14 Mar 2008 12:47:56 +0530, "Ronald W. Heiby" <heiby@yahoo-inc.com> said:
> On Mac OS X 10.4.11, MacBook Pro. In the Finder, I select a file.
> Then, I use the menus to choose Services, Emacs, Open Selected File.
> I expect an Emacs window to pop up with the file contents in a
> buffer, ready for editing. Instead, I get the following in the
> minibuffer:
> find-file-existing: file://localhost/Users/heiby/dhrepl-loc.txt does
> not exist
> when trying to open "dhrepl-loc.txt" in my home directory.
Thanks for this reporting. This seems to be due to a subtle
difference in various versions of Mac OS X. It fails only on 10.4.11,
but not on 10.2.8, 10.3.9, or 10.5.2. Please try the following patch.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
Index: lisp/term/mac-win.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/term/mac-win.el,v
retrieving revision 1.88.2.6
diff -c -p -r1.88.2.6 mac-win.el
*** lisp/term/mac-win.el 7 Jan 2008 02:18:53 -0000 1.88.2.6
--- lisp/term/mac-win.el 14 Mar 2008 23:51:56 -0000
*************** either in the current buffer or in the e
*** 2117,2123 ****
(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)))
(defun mac-service-open-selection ()
"Create a new buffer containing the selection value for Services."
--- 2117,2125 ----
(defun mac-service-open-file ()
"Open the file specified by the selection value for Services."
(interactive)
! ;; 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."
prev parent reply other threads:[~2008-03-14 23:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-14 7:17 Mac: Services, Emacs, Open Selected File Ronald W. Heiby
2008-03-14 15:30 ` Stefan Monnier
2008-03-14 23:56 ` YAMAMOTO Mitsuharu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wly78kzwom.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=bug-gnu-emacs@gnu.org \
--cc=heiby@yahoo-inc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.