From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sean O'Rourke" Newsgroups: gmane.emacs.devel Subject: Re: OS X: using emacs as default mailer? Date: Mon, 27 Jun 2005 22:43:37 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119939105 31923 80.91.229.2 (28 Jun 2005 06:11:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 06:11:45 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 08:11:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dn9JS-0003Ze-JK for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 08:11:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn9RF-0000bp-50 for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 02:19:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dn9AD-00057X-QL for emacs-devel@gnu.org; Tue, 28 Jun 2005 02:01:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dn9A0-0004ym-RE for emacs-devel@gnu.org; Tue, 28 Jun 2005 02:01:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn99z-0004gr-UN for emacs-devel@gnu.org; Tue, 28 Jun 2005 02:01:28 -0400 Original-Received: from [132.239.1.56] (helo=mailbox4.ucsd.edu) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Dn90y-0002Hc-OY for emacs-devel@gnu.org; Tue, 28 Jun 2005 01:52:09 -0400 Original-Received: from smtp.ucsd.edu (smtp-a.ucsd.edu [132.239.1.49]) by mailbox4.ucsd.edu (8.13.3/8.13.3) with ESMTP id j5S5lZTp008444 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 27 Jun 2005 22:47:36 -0700 (PDT) Original-Received: from 80363334.dynamic.ucsd.edu (80363334.dynamic.ucsd.edu [128.54.51.52]) by smtp.ucsd.edu (8.12.10/8.9.3) with ESMTP id j5S5hkTg003105; Mon, 27 Jun 2005 22:44:34 -0700 (PDT) Original-To: John Owens , emacs-devel@gnu.org In-Reply-To: (John Owens's message of "Tue, 28 Jun 2005 03:51:34 +0000 (UTC)") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (darwin) X-Greylisting: NO DELAY (Trusted relay host); processed by UCSD_GL-v1.2 on mailbox4.ucsd.edu; Mon, 27 June 2005 22:47:36 -0700 (PDT) X-MailScanner: PASSED (v1.2.8 6908 j5S5lZTp008444 mailbox4.ucsd.edu) 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:39754 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39754 John Owens writes: > Sean O'Rourke cs.ucsd.edu> writes: >> mac_add_drag ("url", "open", url); > > This whole post was spot-on except for this call above. > I am presuming it relates to your drag-and-drop ... can it > be safely deleted if I'm neither dragging nor dropping? Unfortunately no, since the way I got this to work was by going through the drag-n-drop machinery and treating the GURL event as a dropped URL. Once it gets to the dnd functions (dnd.el) as a "mailto:" url, you can then add a mail handler to your browse-url-browser-function alist (or let w3m-browse-url do the right thing). Sorry this is so sketchy -- I'll try to make a cleaned-up patch for it (both DnD and mailto: handling) soonish. /s