From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: mailclient-send-it usage of browse-url Date: Wed, 14 Apr 2010 08:55:50 -0400 Message-ID: <0C8DC8D9-F68F-41CA-B7ED-B9C37FD88834@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1271249766 16204 80.91.229.12 (14 Apr 2010 12:56:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Apr 2010 12:56:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jeff Clough , Christian Lynbech Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 14 14:56:05 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 1O228S-0002zc-E4 for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 14:56:04 +0200 Original-Received: from localhost ([127.0.0.1]:37261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O228R-0001Lb-Uk for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 08:56:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O228M-0001LW-Ke for emacs-devel@gnu.org; Wed, 14 Apr 2010 08:55:58 -0400 Original-Received: from [140.186.70.92] (port=45079 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O228K-0001LO-UU for emacs-devel@gnu.org; Wed, 14 Apr 2010 08:55:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O228J-000575-9E for emacs-devel@gnu.org; Wed, 14 Apr 2010 08:55:56 -0400 Original-Received: from mail-qy0-f185.google.com ([209.85.221.185]:46238) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O228J-00056y-2k for emacs-devel@gnu.org; Wed, 14 Apr 2010 08:55:55 -0400 Original-Received: by qyk15 with SMTP id 15so119570qyk.10 for ; Wed, 14 Apr 2010 05:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=G7u+3I2l5CUmF0o/JZkHmm98byMiW1prGTfnQG9ZqvQ=; b=O1TXFUlakpwcdzab1UQjnYmVFTcNG4fCP9F58kSzUpegPYq9LrdEM0UVMptWXgOWMe rPc18dyTTZF85wdJlQwutwR0hCCCvRHyhVbw6g5woxlo4dRQwUfuSzJNkrkbTEhcSL72 Jl/9Wx9u7wlKr7kSdf7ALoIo9swlhA6yduqfg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=fjXwSMVUGb0ImD4bgw5mrbEwaGDefl2s5aoO15J9X2iZb+raSVvTUX6AbzWXxpfE5U Gvw3UNDiZ0sboUSYiaYJxFjnJC68vSCZR3a/vz0O4qeEPhw+32+kY7Tt5A6mW6Nbnuhg 3UxbXcZRITnvdbxvKoL5zyyqGFbh40yf2V9h0= Original-Received: by 10.229.193.18 with SMTP id ds18mr1484825qcb.14.1271249754244; Wed, 14 Apr 2010 05:55:54 -0700 (PDT) Original-Received: from [192.168.1.42] (pool-96-236-188-251.pitbpa.east.verizon.net [96.236.188.251]) by mx.google.com with ESMTPS id 23sm164291qyk.7.2010.04.14.05.55.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 14 Apr 2010 05:55:53 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1078) 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:123628 Archived-At: On Apr 13, 2010, at 11:22 PM, Christian Lynbech wrote: >=20 > 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. Well, that's Emacs, or Lisp, if you will. You never know how a function = is implemented... Users/third-party packages can override a lot. > 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? Have a look at browse-url.el. What would this be? It's entirely system-dependent, so stopping short of replicating the = code that determines `browse-url-browser-function', one could (let ((browse-url-browser-function (default-value = 'browse-url-browser-function))) (browse-url mailto-url)) If you're set up correctly, this would let the system handle the mailto = URL, and the system would give control back to Emacs, because Emacs is = your mail client. And there you have your infinite loop again - it's = just a wider loop. The real problem here lies in the design. `send-mail-function' is = supposed to specify a function that sends e-mail off without further = user interaction. Because we can't do that out-of-the-box, we have to = do something at a different level in the "control hierarchy": call the = mail client and let the user edit the e-mail again (which is what mailto = URLs lead to). =20 Perhaps we need a mechanism to leave send-mail-function nil by default, = yet allow bug reporting functions to go through the mail client by = default. Or, one would set up a trivial little script on Savannah to receive a = bug report by HTTP and then send the mail off. That's roughly how most = modern software solves the problem.=