From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Quick question Date: Sun, 31 May 2015 18:02:27 +0200 Message-ID: References: <87eglwn5pl.fsf@ericabrahamsen.net> Reply-To: fabrice.popineau@centralesupelec.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013cb94228169c051762d710 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz5hQ-0000dN-Hu for emacs-orgmode@gnu.org; Sun, 31 May 2015 12:02:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yz5hL-0008P8-HI for emacs-orgmode@gnu.org; Sun, 31 May 2015 12:02:56 -0400 Received: from smtp2.supelec.fr ([160.228.120.31]:42875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz5hL-0008OX-81 for emacs-orgmode@gnu.org; Sun, 31 May 2015 12:02:51 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id 2441E8021A for ; Sun, 31 May 2015 18:02:49 +0200 (CEST) Received: from smtp2.supelec.fr ([127.0.0.1]) by localhost (smtp2.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vHBSNPDvX99l for ; Sun, 31 May 2015 18:02:48 +0200 (CEST) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by smtp2.supelec.fr (Postfix) with ESMTPSA id 9E921801F4 for ; Sun, 31 May 2015 18:02:48 +0200 (CEST) Received: by obbnx5 with SMTP id nx5so87940284obb.0 for ; Sun, 31 May 2015 09:02:47 -0700 (PDT) In-Reply-To: <87eglwn5pl.fsf@ericabrahamsen.net> 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: Eric Abrahamsen Cc: "emacs-orgmode@gnu.org" --089e013cb94228169c051762d710 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Oh ... thanks: `org-id-find' is perfect! I'm playing with https://github.com/bateast/google-calendar which allows to fetch your google calendars in quite a robust way (or so it seems). The next step for me is to allow to sync google calendar entries even after they have been refiled (hence the need to find them by their id) I'm not that skillful with the internals of org-mode and a bit lost in all the functions. Maybe someone will beat me in pushing this google-calendar thing further ;-= ) Fabrice 2015-05-31 17:10 GMT+02:00 Eric Abrahamsen : > Fabrice Popineau writes: > > > Hi, > > > > I'm doing a little bit of elisp and I was wondering > > what is the easiest way to find an element (say a header) > > with a given id among the list of all agenda files? > > I know I can use org-element-map, but is there > > a faster or easier way ? > > > > Thanks, > > > > Fabrice > > Do you mean searching for an actual header ID property? That's provided > for with `org-id-find' and `org-id-goto'. Or did you mean some other > kind of id? > > Eric > > > --=20 Fabrice Popineau ----------------------------- SUPELEC D=C3=A9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --089e013cb94228169c051762d710 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Oh ... thanks: `org-id-find' is perfect!

I'm playing with=C2=A0
=
which allows to fetch your google calendars in quite a robust way (or = so it seems).
The next step for me is to allow to sync google= calendar entries even after they have been refiled
(hence the ne= ed to find them by their id)
I'm not that skillful with the i= nternals of org-mode and a bit lost in all the functions.
Maybe s= omeone will beat me in pushing this google-calendar thing further ;-)
=

Fabrice

2015-05-31 17:10 GMT+02:00 Eric Abrahamsen <e= ric@ericabrahamsen.net>:
Fabrice Popineau <fabrice.popineau@gmail.com> writes:
> Hi,
>
> I'm doing a little bit of elisp and I was wondering
> what is the easiest way to find an element (say a header)
> with a given id among the list of all agenda files?
> I know I can use org-element-map, but is there
> a faster or easier way ?
>
> Thanks,
>
> Fabrice

Do you mean searching for an actual header ID property? That= 9;s provided
for with `org-id-find' and `org-id-goto'. Or did you mean some othe= r
kind of id?

Eric





--
Fabrice Popineau
---------------------= --------
SUPELEC
D=C3=A9partement Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct= : +33 (0) 169851950
Standard : +33 (0) 169851212
-----= -------------------------

--089e013cb94228169c051762d710--