From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] New function to send a mail to the recipient at point Date: Sun, 24 Feb 2008 10:05:40 +0100 Message-ID: References: <200802232244.m1NMiK5I014327@localhost.localdomain> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203845303 20926 80.91.229.12 (24 Feb 2008 09:28:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 09:28:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Xavier Maillard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 10:28:47 2008 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.50) id 1JTDA6-00014S-9H for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 10:28:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTD9a-0001TB-Kx for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 04:28:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTD9T-0001PX-QI for emacs-devel@gnu.org; Sun, 24 Feb 2008 04:28:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTD9Q-0001NQ-Sw for emacs-devel@gnu.org; Sun, 24 Feb 2008 04:28:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTD9Q-0001ND-Ga for emacs-devel@gnu.org; Sun, 24 Feb 2008 04:28:04 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JTD9M-0007iN-Kn; Sun, 24 Feb 2008 04:28:01 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m1O9RwKH024040; Sun, 24 Feb 2008 10:27:58 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 3BF7A11A13; Sun, 24 Feb 2008 10:27:58 +0100 (CET) X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Followup-To: Xavier Maillard , In-Reply-To: <200802232244.m1NMiK5I014327@localhost.localdomain> (Xavier Maillard's message of "Sat, 23 Feb 2008 01:25:03 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.90 (gnu/linux) X-DCC-debian-Metrics: poseidon 1169; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:90212 Archived-At: On Sat, Feb 23 2008, Xavier Maillard wrote: > +2008-02-23 Xavier Maillard > + > + * mail/rmail.el (rmail-send-mail-at-point): New function. Send an email > + to the recipient address at point. [...] > -So, the MIME support is turned off for the moment." > +So, the MIME support is turned off for the moment." [Unrelated whitespace change.] > +(defun rmail-send-mail-at-point () > + "Edit a mail message to the recipient found at point." > + (interactive) > + (require 'thingatpt) > + (let ((to (thing-at-point 'email))) > + (if to > + (mail nil to) > + (error "No email found at point")))) `M-x browse-url-at-point RET' already does this for me (in every mode). I have `("^mailto:" . browse-url-mail)' in `browse-url-browser-function'. [BTW, your User-Agent header is not confirming to RFC 2616 or the usefor drafts.] Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/