emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Feng Shu <tumashu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] org-contacts.el, add alias properties
Date: Wed, 10 Apr 2013 21:15:14 +0800	[thread overview]
Message-ID: <87eheio7bx.fsf_-_@news.tumashu-localhost.org> (raw)
In-Reply-To: <87bo9msggq.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 10 Apr 2013 14:44:21 +0200")

[-- Attachment #1: 0001-org-contacts.el-add-name-alias-property.patch --]
[-- Type: text/x-diff, Size: 1451 bytes --]

From 27f65b3939ca60ec7abf7d066b3aadfff44396a8 Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@gmail.com>
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 个文件被修改,插入 7 行(+)

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)
 
+(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:
 
 (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)
-- 
1.7.10.4


[-- Attachment #2: Type: text/plain, Size: 6 bytes --]



-- 

  reply	other threads:[~2013-04-10 13:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 11:52 Some %elements in org-html-postamble-format became too "generous" Dieter Wilhelm
2013-04-07 13:04 ` Nicolas Goaziou
2013-04-07 16:26   ` Dieter Wilhelm
2013-04-07 17:35     ` Dieter Wilhelm
2013-04-07 18:35       ` Nicolas Goaziou
2013-04-07 18:32     ` Nicolas Goaziou
2013-04-07 18:51       ` Rick Frankel
2013-04-07 19:00         ` Nicolas Goaziou
2013-04-09  1:55           ` Rick Frankel
2013-04-10 12:44             ` Nicolas Goaziou
2013-04-10 13:15               ` Feng Shu [this message]
2013-04-10 13:18                 ` [PATCH] org-contacts.el, add alias properties Bastien
2013-04-09  5:46           ` Some %elements in org-html-postamble-format became too "generous" Dieter Wilhelm
2013-04-09  9:54             ` Bastien
2013-04-10 18:13           ` Dieter Wilhelm
2013-04-07 20:52       ` Dieter Wilhelm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eheio7bx.fsf_-_@news.tumashu-localhost.org \
    --to=tumashu@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).