From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.devel Subject: Re: Adding email address support to thingatpt.el. Date: Tue, 27 Feb 2007 08:37:13 +0100 Message-ID: <45E3DFA9.5000608@easy-emacs.de> References: <87vehqox9u.fsf@floss.red-bean.com> <87ps7xavui.fsf@floss.red-bean.com> <45E32048.8050309@easy-emacs.de> <87abyz7qgd.fsf@floss.red-bean.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172561086 6753 80.91.229.12 (27 Feb 2007 07:24:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2007 07:24:46 +0000 (UTC) Cc: emacs-devel To: Karl Fogel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 27 08:24:39 2007 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 1HLwhQ-00007f-SU for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2007 08:24:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLwhQ-00049M-BY for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2007 02:24:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HLwgG-0003RY-U8 for emacs-devel@gnu.org; Tue, 27 Feb 2007 02:23:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HLwgF-0003Qj-GS for emacs-devel@gnu.org; Tue, 27 Feb 2007 02:23:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLwgF-0003QY-6X for emacs-devel@gnu.org; Tue, 27 Feb 2007 02:23:23 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.174]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HLwgE-0000Pn-M1 for emacs-devel@gnu.org; Tue, 27 Feb 2007 02:23:23 -0500 Original-Received: from [84.190.200.22] (helo=[192.168.178.25]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1HLwg10mNw-0006Q6; Tue, 27 Feb 2007 08:23:14 +0100 User-Agent: Thunderbird 1.5.0.4 (X11/20060516) In-Reply-To: <87abyz7qgd.fsf@floss.red-bean.com> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:62d13292e0fce6aaed56aaadcb96352d X-Provags-ID2: V01U2FsdGVkX1+pPjY9vuw80pUFOGuxbDhvI+PANAbIM87HE+W AsILQGqQMKKH49p0EQ/kHxkHenLadTllpBzvxiPZBTRkN1w2b9 v91EFLOU8363rOsNj6GFQ== X-detected-kernel: Linux 2.6? (barebone, rare!) 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:66900 Archived-At: > >> AFAIU rfc2822, several more chars are allowed to be >> part of an email-adress than regexp honours now: >> > > It's tough to know what to include. Many characters that technically > could be part of an email address are rarely used in practice, and > instead appear much more often as delimiters (in certain contexts). > So if thingatpt.el is to Do The Right Thing most often for the user, > it probably can't comply precisely with the RFC. > > If Emacs is more restrictive than RFC2822, errors and bug-reports are ahead. BTW: Does RFC2822 indeed require at least two chars before the `@'? I'm not sure about it, but can't see that. So the core of my regexp, taking the ranges from RFC, is this: [\041-\132\136-\176]+@[\041-\132\136-\176]+ __ Andreas Roehler