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:47:42 -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 1119938822 31372 80.91.229.2 (28 Jun 2005 06:07:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 06:07:02 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 08:06:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dn9FE-0002s6-1u for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 08:06:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn9N0-0000Bc-OZ for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 02:14:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dn9AD-000579-5c for emacs-devel@gnu.org; Tue, 28 Jun 2005 02:01:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dn9A0-0004y7-9W for emacs-devel@gnu.org; Tue, 28 Jun 2005 02:01:39 -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-Cs for emacs-devel@gnu.org; Tue, 28 Jun 2005 02:01:27 -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 1Dn919-0002I3-0X for emacs-devel@gnu.org; Tue, 28 Jun 2005 01:52:19 -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 j5S5lhWF008464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 27 Jun 2005 22:47:44 -0700 (PDT) Original-Received: from 80363334.dynamic.ucsd.edu ([128.54.220.172]) by smtp.ucsd.edu (8.12.10/8.9.3) with ESMTP id j5S5lgTg003351; Mon, 27 Jun 2005 22:47:43 -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:44 -0700 (PDT) X-MailScanner: PASSED (v1.2.8 6908 j5S5lhWF008464 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:39753 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39753 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