emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "andrés ramírez" <rrandresf@gmail.com>
To: "Andrés Ramírez" <rrandresf@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: testing org-bbdb-anniversaries
Date: Fri, 21 Feb 2020 18:41:34 +0000	[thread overview]
Message-ID: <86a75biy01.fsf@gmail.com> (raw)
In-Reply-To: <87zhdbes4c.fsf@nicolasgoaziou.fr>

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

  reply	other threads:[~2020-02-21 18:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-21 16:48 testing org-bbdb-anniversaries Andrés Ramírez
2020-02-21 18:02 ` Nicolas Goaziou
2020-02-21 18:41   ` andrés ramírez [this message]
2020-02-22  9:33     ` Bastien

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=86a75biy01.fsf@gmail.com \
    --to=rrandresf@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).