From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: mail-extract-address-components with "Ver Surname, Given" Date: Fri, 17 Jun 2005 22:21:19 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1119061071 5620 80.91.229.2 (18 Jun 2005 02:17:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2005 02:17:51 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 18 04:17:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DjStW-0007ao-K4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jun 2005 04:17:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DjSzF-0008Qy-Hk for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jun 2005 22:23:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DjSyg-0008CP-To for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2005 22:22:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DjSyc-0008A3-Tm for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2005 22:22:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DjSyc-00089l-O1 for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2005 22:22:30 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DjSzu-000895-Hx for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2005 22:23:50 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DjSxT-0003W6-4r; Fri, 17 Jun 2005 22:21:19 -0400 Original-To: Kevin Rodgers In-reply-to: (message from Kevin Rodgers on Thu, 16 Jun 2005 12:05:49 -0600) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:12267 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12267 This change fixes it. What I am not sure is whether the criterion is now too general so that it would give bad results in some other case. *** mail-extr.el 10 Feb 2005 01:13:43 -0500 1.47 --- mail-extr.el 17 Jun 2005 20:03:46 -0400 *************** *** 1594,1600 **** ;; Check for initial last name followed by comma ((and (eq ?, (following-char)) ! (eq word-count 1)) (forward-char 1) (setq last-name-comma-flag t) (or (eq ?\ (following-char)) --- 1594,1605 ---- ;; Check for initial last name followed by comma ((and (eq ?, (following-char)) ! (not last-name-comma-flag)) ! ;; This used to check for (eq word-count 1), ! ;; but that failed for the case ! ;; (mail-extract-address-components ! ;; "\"Ver Surname, Given\" ") ! ;; However, not checking at all may make this too general. (forward-char 1) (setq last-name-comma-flag t) (or (eq ?\ (following-char))