From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-contacts: match name without formatting Date: Wed, 04 Jan 2012 17:43:00 +0100 Message-ID: <87r4zf8lm3.fsf@gnu.org> References: <8739bxdf5p.wl%n142857@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiTuV-0007OJ-FA for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 11:41:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiTuU-0000qE-Cj for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 11:41:55 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:62808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiTuU-0000q2-4L for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 11:41:54 -0500 Received: by wgbdt11 with SMTP id dt11so22593323wgb.30 for ; Wed, 04 Jan 2012 08:41:53 -0800 (PST) In-Reply-To: <8739bxdf5p.wl%n142857@gmail.com> (Daniel Clemente's message of "Mon, 02 Jan 2012 21:26:42 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Clemente Cc: org-mode Mailinglist Hi Daniel, thanks for the patch. Daniel Clemente writes: > +(defun org-contacts-format-name (name) > + "Remove some formatting marks from contact name" > + (replace-regexp-in-string org-radio-target-regexp "\\1" name) > + ; TODO also remove emphasis (org-emphasis-alist) > +) (I'd suggest ̀org-contacts-cleanup-name' instead of `org-contacts-format-name'.) Also, let's carefully check that such cleanups don't slow down things -- I'm not using org-contacts (yet) but I remember speed can be a problem with big database. Thanks, -- Bastien