From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: phone links... Date: Tue, 09 Apr 2013 07:19:35 -0500 Message-ID: <51640757.80902@sift.info> References: <5156228C.4010400@sift.info> <871uaq7aqy.fsf@bzg.ath.cx> <515E3938.2030202@sift.info> <20130408103832.GE659@strey.biz> <5162BC78.7010509@sift.info> <20130408140731.GF659@strey.biz> <5162D7BC.3020303@sift.info> <20130409073140.GJ659@strey.biz> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPXWZ-0000C6-5X for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 08:19:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPXWU-0001rc-Bj for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 08:19:43 -0400 Received: from 23-25-144-217-static.hfc.comcastbusiness.net ([23.25.144.217]:54933 helo=mpls.sift.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPXWU-0001rO-6w for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 08:19:38 -0400 In-Reply-To: <20130409073140.GJ659@strey.biz> 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 Michael Strey wrote: > Robert, > > On Mo, Apr 08, 2013 at 09:44:12 -0500, Robert Goldman wrote: >> Michael Strey wrote: >>> Currently org-phone.el as well as my org-dial.el are incompatible with >>> org-contacts. The only idea behind my proposal was to make the contributors >>> of both packages aware of each other. >> Can you explain what makes org-phone incompatible with org-contacts? >> Maybe my naming of some function? > > The problem is on the side of org-contacts. Org-contacts does not > support links in its properties. Thus, currently the only solution to > use the advantages of org-contacts and org-phone is to give the > information twice, like in the following example. > > #+BEGIN_SRC org > * Strey, Michael > :PROPERTIES: > :EMAIL: mstrey@strey.biz foo@bar.com > :PHONE: +493514129535 +491263213 > :END: > > [[mailto:mstrey@strey.biz]] > [[mailto:foo@bar.com]] > [[phone:+49 (0)351 41295-35]] > [[phone:+49 126 3213]] > #+END_SRC > > This shortcoming effects not only the phone links but email links as > well. > > Regards I think in that case it might be best to have a function in org-contacts that "knows" that PHONE contains phone numbers, and that can parse them out, and shoot them off to org-phone. Vague thought: Make C-c C-c aware of PHONE properties so that it can perform this magic. Again, I am not an org-contacts user, so this may be a stupid question, but how does org-contacts "know" when it has a contact? I am looking at the sample record you present above, and it looks just like an org-mode header to me. There is no marker, as far as I can tell, that would tell org-mode that it is a contact record, instead of some other arbitrary thing. This seems odd to me. Why isn't it something like #+BEGIN_SRC org * CONTACT Strey, Michael :PROPERTIES: :EMAIL: mstrey@strey.biz foo@bar.com :PHONE: +493514129535 +491263213 :END: #+END_SRC by analogy to the way TODO flags a task? At any rate, any function that could parse a :PHONE: property could easily (funcall org-phone-function ). Cheers, r