From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: [PATCH] org-contacts.el, add alias properties Date: Wed, 10 Apr 2013 21:15:14 +0800 Message-ID: <87eheio7bx.fsf_-_@news.tumashu-localhost.org> References: <8761zyzhf5.fsf@duenenhof-wilhelm.de> <87ppy6xzjf.fsf@gmail.com> <87txnixq63.fsf@duenenhof-wilhelm.de> <87li8uxkcd.fsf@gmail.com> <20130407185101.GA22894@BigDog.local> <87sj32w4hg.fsf@gmail.com> <20130409015548.GB23190@BigDog.local> <87bo9msggq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPus6-0003wa-7i for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 09:15:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPus4-0001zj-Ph for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 09:15:30 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:35392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPus4-0001zM-Hh for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 09:15:28 -0400 Received: by mail-pd0-f174.google.com with SMTP id p12so262294pdj.5 for ; Wed, 10 Apr 2013 06:15:27 -0700 (PDT) Received: from feng by tumashu with local (Exim 4.80) (envelope-from ) id 1UPurq-00060N-8E for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 21:15:14 +0800 In-Reply-To: <87bo9msggq.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 10 Apr 2013 14:44:21 +0200") 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-org-contacts.el-add-name-alias-property.patch Content-Transfer-Encoding: quoted-printable >From 27f65b3939ca60ec7abf7d066b3aadfff44396a8 Mon Sep 17 00:00:00 2001 From: Feng Shu Date: Wed, 10 Apr 2013 21:05:15 +0800 Subject: [PATCH] org-contacts.el, add name alias property. * contrib/lisp/org-contacts.el (org-contacts-alias-property): add new varible (org-contacts-matcher): add org-contacts-alias-property to this list Name alias is a very useful feature, especially for CJK users. --- contrib/lisp/org-contacts.el | 7 +++++++ 1 =E4=B8=AA=E6=96=87=E4=BB=B6=E8=A2=AB=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=8F=92= =E5=85=A5 7 =E8=A1=8C(+) diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el index 65eeea8..a3c4aed 100644 --- a/contrib/lisp/org-contacts.el +++ b/contrib/lisp/org-contacts.el @@ -81,6 +81,12 @@ When set to nil, all your Org files will be used." :type 'string :group 'org-contacts) =20 +(defcustom org-contacts-alias-property "ALIAS" + "Name of the property for contact name alias." + :type 'string + :group 'org-contacts) + + (defcustom org-contacts-birthday-format "Birthday: %l (%Y)" "Format of the anniversary agenda entry. The following replacements are available: @@ -129,6 +135,7 @@ The following replacements are available: =20 (defcustom org-contacts-matcher (mapconcat 'identity (list org-contacts-email-property + org-contacts-alias-property org-contacts-tel-property org-contacts-address-property org-contacts-birthday-property) --=20 1.7.10.4 --=-=-= Content-Type: text/plain -- --=-=-=--