Re: [Mac-emacs-users] "browse-url" support for Macintosh
Brought to you by:
akochoi
|
From: Piet v. O. <pi...@cs...> - 2002-06-13 15:27:17
|
>>>>> dm...@dm... (d) writes:
d> Here is a patch to browse-url.el which adds support for a MacOS
d> browser function. It uses Applescript to ask the default browser to
d> open URLs.
There is no reason to patch browse-urk for this. The following also works:
(if (eq system-type 'darwin)
(setq browse-url-generic-program
"openurl"))
where openurl is the shellscript:
#!/bin/sh
osascript -e 'open location "'$*'"'
I think the do-applescript solution requires a patched emacs, doesn't it?
--
Piet van Oostrum <pi...@cs...>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.v...@hc...
|