emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Feng Shu <tumashu@gmail.com>
To: orgmode <emacs-orgmode@gnu.org>
Subject: [Need a feature] complete email with alias in gnus
Date: Thu, 30 May 2013 15:44:46 +0800	[thread overview]
Message-ID: <878v2wkj2p.fsf@news.tumashu-localhost.org> (raw)


Hi:

I want to complete email with alias instead of name, when I write a mail
in gnus.

I'm using  a tmp solution now, however it is nearly imposssible to be included into master,

so I have to rebase this patch every pull, I want to find a better solution,

Coule someone can help me ?


#+begin_example
,----[ 0001-org-contacts.el-stupid-solutions-which-can-complete-.patch ]
| From 27b896a813203bad7c55dece6bc37cd2eeff0f40 Mon Sep 17 00:00:00 2001
| From: Feng Shu <tumashu@gmail.com>
| Date: Thu, 11 Apr 2013 21:12:38 +0800
| Subject: [PATCH] org-contacts.el, stupid solutions which can  complete email
|  address using alias  in message-mode
| 
| * contrib/lisp/org-contacts.el (org-contacts-complete-name): Add alias varible
| ---
|  contrib/lisp/org-contacts.el |    4 +++-
|  1 个文件被修改,插入 3 行(+),删除 1 行(-)
| 
| diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el
| index 7b0b603..999bd5d 100644
| --- a/contrib/lisp/org-contacts.el
| +++ b/contrib/lisp/org-contacts.el
| @@ -488,11 +488,13 @@ A group FOO is composed of contacts with the tag FOO."
|  		for email-list = (org-contacts-split-property (or
|  						(cdr (assoc-string org-contacts-email-property
|  								   (caddr contact))) ""))
| +		for alias = (cdr (assoc-string org-contacts-alias-property (caddr contact)))
|  		;; If the user has email addresses…
|  		if email-list
|  		;; … append a list of USER <EMAIL>.
|  		nconc (loop for email in email-list
| -			    collect (org-contacts-format-email contact-name (org-contacts-strip-link email)))))
| +			    collect (org-contacts-format-email (if alias
| +								   (concat contact-name "(" alias ")") contact-name)  (org-contacts-strip-link email)))))
|  	 (completion-list (org-contacts-all-completions-prefix
|  			   string
|  			   (org-uniquify completion-list))))
| -- 
| 1.7.10.4
| 
`----


#+end_example







-- 

                 reply	other threads:[~2013-05-30  7:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=878v2wkj2p.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).