From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: mailclient-send-it usage of browse-url Date: Wed, 14 Apr 2010 15:20:40 +0200 Message-ID: References: <0C8DC8D9-F68F-41CA-B7ED-B9C37FD88834@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: dough.gmane.org 1271251266 22494 80.91.229.12 (14 Apr 2010 13:21:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Apr 2010 13:21:06 +0000 (UTC) Cc: Jeff Clough , Christian Lynbech , "emacs-devel@gnu.org" To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 14 15:21:04 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O22Wc-00083C-Lm for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 15:21:02 +0200 Original-Received: from localhost ([127.0.0.1]:37565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O22Wb-0007HG-Io for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 09:21:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O22WU-0007GL-F4 for emacs-devel@gnu.org; Wed, 14 Apr 2010 09:20:54 -0400 Original-Received: from [140.186.70.92] (port=44909 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O22WP-0007Fz-53 for emacs-devel@gnu.org; Wed, 14 Apr 2010 09:20:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O22WM-0001Xt-3c for emacs-devel@gnu.org; Wed, 14 Apr 2010 09:20:49 -0400 Original-Received: from ebb05.tieto.com ([131.207.168.36]:62119) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O22WL-0001XO-N7 for emacs-devel@gnu.org; Wed, 14 Apr 2010 09:20:46 -0400 X-AuditID: 83cfa824-b7cebae00000797f-54-4bc5c12ca220 Original-Received: from FIHGA-EXHUB01.eu.tieto.com ( [131.207.136.34]) by ebb05.tieto.com (SMTP Mailer) with SMTP id A7.78.31103.C21C5CB4; Wed, 14 Apr 2010 16:20:44 +0300 (EEST) Original-Received: from uw000509 (10.48.99.3) by inbound.tieto.com (131.207.136.49) with Microsoft SMTP Server id 8.2.176.0; Wed, 14 Apr 2010 16:20:43 +0300 In-Reply-To: <0C8DC8D9-F68F-41CA-B7ED-B9C37FD88834@gmail.com> (David Reitter's message of "Wed, 14 Apr 2010 15:55:50 +0300") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.95 (gnu/linux) X-Brightmail-Tracker: AAAAARO1VaY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123632 Archived-At: >>>>> "David" == David Reitter writes: David> On Apr 13, 2010, at 11:22 PM, Christian Lynbech wrote: >> >> While it could be that emacs-w3m does not do the right thing with >> mailto, it is still so that one cannot really know what `browse-url' >> really points to. David> Well, that's Emacs, or Lisp, if you will. You never know how a David> function is implemented... Users/third-party packages can David> override a lot. True, but I think there is a difference between, say, `calendar-lunar-phases' which does something completely deterministic (however it is implemented) and then `browse-url' which is just an interface to a host of different applications. I *know* that `browse-url' may mean different things on different systems. >> Wouldn't it be a solution to just directly do what `browse-url' was >> normally expected to do rather than relying on the user or the >> third-party package having set everything up correctly? David> Have a look at browse-url.el. What would this be? As I just wrote to Jeff, I would actually it by using Safari directly when on Darwin. We are anyway doing special things for Darwin (choosing mailclient over sendmail) and on Linux we are fine with selecting a system function we know to be there, why couldn't we just do the same for Darwin? It is not that we want to involve the user in our calling of a browser, we only wants something that works, and we can rely on Safari being on a Darwin as much as we can rely on sendmail being on a Linux system. Alternatively, we should fix `browse-url-default-browser' to also work on Darwin and Windows and use that instead of `browse-url'. ------------------------+----------------------------------------------------- Christian Lynbech | christian #\@ defun #\. dk ------------------------+----------------------------------------------------- Hit the philistines three times over the head with the Elisp reference manual. - petonic@hal.com (Michael A. Petonic)