From: Dave Love <d.love@dl.ac.uk>
Subject: [Denis Howe <dbh@doc.ic.ac.uk>] [David Charlap <shamino@mindspring.com>: MacOS X support in browse-url]
Date: 14 Mar 2003 15:08:59 +0000 [thread overview]
Message-ID: <rzqfzpqt27o.fsf@albion.dl.ac.uk> (raw)
[-- Attachment #1: Type: message/rfc822, Size: 2658 bytes --]
From: Denis Howe <dbh@doc.ic.ac.uk>
To: browse-url maintainer <d.love@dl.ac.uk>
Subject: [David Charlap <shamino@mindspring.com>: MacOS X support in browse-url]
Date: Thu, 27 Feb 2003 01:02:21 +0000
Message-ID: <E18oCRJ-0005km-00@sync01.doc.ic.ac.uk>
------- Start of forwarded message -------
X-Coding-System: undecided-unix
Mail-from: From shamino@mindspring.com Sat Feb 22 16:28:11 2003
Date: Sat, 22 Feb 2003 11:28:09 -0500
From: David Charlap <shamino@mindspring.com>
Organization: Citizens for the abolition of the letter 'Q'
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
rv:1.3b) Gecko/20030212
X-Accept-Language: en-us, en-gb, en
To: Denis Howe <dbh@doc.ic.ac.uk>, bug-gnu-emacs@gnu.org
Subject: MacOS X support in browse-url
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
I'm running Emacs 21.3.50 on MacOS X version 10.2.4.
By default, the (browse-url) function does not work on MacOS X. It
fails to find any browser on the search path (which makes sense, because
there isn't any), and then fails to load w3 (unless you have it installed).
I wrote this small bit of LISP to get it to call the system's "open"
command which, when given a URL, will launch the system-configured web
browser:
(defun browse-url-default-macosx-browser (url &optional new-window)
"Ask MacOS to load URL using the system-default web browser."
(interactive (browse-url-interactive-arg "URL: "))
(start-process "browser" nil "open" url)
)
(setq browse-url-browser-function 'browse-url-default-macosx-browser)
Please review this function and include it in an appropriate way in the
browse-url.el source file of the next Emacs release.
Thanks in advance.
- -- David
------- End of forwarded message -------
[-- Attachment #2: Type: text/plain, Size: 148 bytes --]
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
reply other threads:[~2003-03-14 15:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rzqfzpqt27o.fsf@albion.dl.ac.uk \
--to=d.love@dl.ac.uk \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).