From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?andr=C3=A9s_ram=C3=ADrez?= Subject: Re: testing org-bbdb-anniversaries Date: Fri, 21 Feb 2020 18:41:34 +0000 Message-ID: <86a75biy01.fsf@gmail.com> References: <86blprj391.fsf@gmail.com> <87zhdbes4c.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51329) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5DFA-00030a-Oh for emacs-orgmode@gnu.org; Fri, 21 Feb 2020 13:41:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5DF9-0007X7-Nj for emacs-orgmode@gnu.org; Fri, 21 Feb 2020 13:41:44 -0500 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:34590) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5DF9-0007Wx-KA for emacs-orgmode@gnu.org; Fri, 21 Feb 2020 13:41:43 -0500 Received: by mail-qv1-xf2d.google.com with SMTP id o18so1431608qvf.1 for ; Fri, 21 Feb 2020 10:41:43 -0800 (PST) In-Reply-To: <87zhdbes4c.fsf@nicolasgoaziou.fr> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?Q?Andr=C3=A9s_Ram=C3=ADrez?= , emacs-orgmode@gnu.org Hi Nicolas. Nicolas> Sadly, yes. Like most diary-related stuff, it expects the Nicolas> `date' variable to be globally bound. Perhaps something about it on the help? --8<---------------cut here---------------start------------->8--- (defun org-bbdb-anniversaries () "Extract anniversaries from BBDB for display in the agenda In case of calling programatically. Like most diary-related stuff, it expects the `date' variable to be globally bound." (require 'bbdb) ..... ) --8<---------------cut here---------------end--------------->8--- Nicolas> Something like Nicolas> (let ((date '(2 29 2020))) (org-bbdb-anniversaries)) It helped. Thanks. BR