emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Matt Lundin <mdl@imapmail.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [BUG] org-agenda-open-link does not open bbdb links
Date: Thu, 27 Jun 2013 15:53:41 +0200	[thread overview]
Message-ID: <87obarr3wk.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87d2sg753q.fsf@fastmail.fm> (Matt Lundin's message of "Fri, 24 May 2013 10:46:49 -0500")

Hi Matt,

Matt Lundin <mdl@imapmail.org> writes:

> The function org-agenda-open-link does not open bbdb links.
>
> The reason is that bbdb agenda lines contain links that are not found in
> the entry. 

I'm not sure I understand.  Can you provide a minimal example/recipe?

> Because the agenda line is added to the strings scanned by
> org-offer-links-in-entry, it is added to the list of links (lk). I.e.,
> both buffer and lk are defined, which triggers the first cond statement.
> The function then proceeds to search for this link in the buffer. It
> does not find it, since a bbdb-anniversary entry typically looks like
> this:
>
> * Anniversaries
>   :PROPERTIES:
>   :CATEGORY: anniv
>   :END:
> %%(org-bbdb-anniversaries)
>
> But as a result, the function org-offer-links-in-entry never gets to the
> second cond statement, which would indeed open the link found in the
> agenda buffer.
>
> It seems to me that feeding the agenda line as a "prefix" to
> org-offer-links-in-entry is redundant, since the second cond statement
> explicitly looks for links in the agenda line.
>
> The following change fixes the problem, but before I submit it as a
> properly formatted patch, I want to make sure that it does not interfere
> with some other functionality.

The patch would need to update `org-offer-links-in-entry' too, as the
occurrence you changed is the only one requiring a zero arg.  I remember
this was intentional, but the code is convoluted here.

Anyway, a recipe on how to reproduce the problem will help.

Thanks!

-- 
 Bastien

  reply	other threads:[~2013-06-27 15:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24 15:46 [BUG] org-agenda-open-link does not open bbdb links Matt Lundin
2013-06-27 13:53 ` Bastien [this message]
2013-08-09  2:22   ` Matt Lundin

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=87obarr3wk.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.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).