From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Adding email address support to thingatpt.el. Date: Tue, 27 Feb 2007 06:49:21 -0800 Message-ID: References: <45E3DFA9.5000608@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172587823 3308 80.91.229.12 (27 Feb 2007 14:50:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2007 14:50:23 +0000 (UTC) To: "emacs-devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 27 15:50:16 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 1HM3eh-0008Li-5e for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2007 15:50:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HM3eg-0004bT-Lf for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2007 09:50:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HM3eU-0004Yb-GY for emacs-devel@gnu.org; Tue, 27 Feb 2007 09:50:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HM3eS-0004XN-Fp for emacs-devel@gnu.org; Tue, 27 Feb 2007 09:50:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HM3eS-0004XK-DI for emacs-devel@gnu.org; Tue, 27 Feb 2007 09:50:00 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HM3eR-0003eR-Su for emacs-devel@gnu.org; Tue, 27 Feb 2007 09:50:00 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l1REnulM018462 for ; Tue, 27 Feb 2007 08:49:57 -0600 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l1REnt41003698 for ; Tue, 27 Feb 2007 07:49:55 -0700 Original-Received: from dhcp-amer-csvpn-gw1-141-144-64-146.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 2481393931172587761; Tue, 27 Feb 2007 07:49:21 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <45E3DFA9.5000608@easy-emacs.de> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 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:66920 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. I haven't followed all of this, and I have no special knowledge of this. It sounds as if: - The spec allows stuff that most people don't use, and that many people and programs try to interpret as delimiters. - If the code fits the spec completely, then many users would be inconvenienced. - If the code doesn't fit the spec completely, then some people will complain and file bugs. Why not have the code do both, with a user option to choose the behavior you want? Then pick the default value of the option to inconvenience the fewest users.