all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Denis Howe <dbh@doc.ic.ac.uk>] [David Charlap <shamino@mindspring.com>: MacOS X support in browse-url]
@ 2003-03-14 15:08 Dave Love
  0 siblings, 0 replies; only message in thread
From: Dave Love @ 2003-03-14 15:08 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-14 15:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-14 15:08 [Denis Howe <dbh@doc.ic.ac.uk>] [David Charlap <shamino@mindspring.com>: MacOS X support in browse-url] Dave Love

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.