From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: org-contacts email completion by tags Date: Sun, 13 Jul 2014 19:48:14 +0900 Message-ID: <87vbr1r0up.fsf@tanger.home> References: <87oay8ez6c.fsf@tanger.home> <87bnu7fucv.fsf@tanger.home> <8761kd7b1k.fsf@andrew.cmu.edu> <87ha3kugh4.fsf@tanger.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6HKY-0001JI-GW for emacs-orgmode@gnu.org; Sun, 13 Jul 2014 06:48:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6HKP-00010r-Fn for emacs-orgmode@gnu.org; Sun, 13 Jul 2014 06:48:30 -0400 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:48013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6HKP-00010L-8d for emacs-orgmode@gnu.org; Sun, 13 Jul 2014 06:48:21 -0400 Received: by mail-pd0-f182.google.com with SMTP id fp1so874053pdb.13 for ; Sun, 13 Jul 2014 03:48:19 -0700 (PDT) In-Reply-To: <87ha3kugh4.fsf@tanger.home> (daimrod@gmail.com's message of "Tue, 17 Jun 2014 16:45:27 +0900") 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: John Kitchin Cc: "emacs-orgmode@gnu.org" Daimrod writes: > Thanks, but I'm refactoring org-contacts a bit, and I think I have found > a slightly better way to do that, but in the meantime you can use the > aforementioned hook for your function. It turns out that my idea was wrong, so I have used a version very similar to yours. The function is triggered by the prefix '#' (customizable) and can be used to match tags and properties. e.g. the following expression: #work-phd&BIRTHDAY<>"" will look for contacts with the tag 'work' but not the tag 'phd' and for which there is a BIRTHDAY properties. Best, -- Daimrod/Greg