Package: org-mode
Version: 7.01g-1
Severity: normal

A line of

%%(org-bbdb-anniversaries)

in a .org file inserts birthdays into the agenda that contain links to
the respective BBDB entry.  On such a link, M-x org-agenda-open-link or
C-c C-o should open this BBDB record.  Instead, it says "No links".

Here is a demonstration of the bug that doesn't require BBDB.  Put the
following line into one of your agenda files:

%%((lambda () (concat "[[" "http" "://example.com" "]" "]")))

M-x org-agenda-list now includes decent links to http://example.com.

C-c C-o on one of them answers "No links".


This patch that should fix the issue:

>From 4d9812b2488f42281021438489f107a4a46f1c72 Mon Sep 17 00:00:00 2001
From: Bert Burgemeister <[email protected]>
Date: Sun, 13 Mar 2011 15:33:51 +0100
Subject: [PATCH] Bugfix: org-agenda-open-link

* org-agenda.el (org-agenda-open-link): C-c C-o didn't open links
inserted via the `%%( )' mechanism, affecting usability of
`%%(org-bbdb-anniversaries).

---
 lisp/org-agenda.el |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 4b4dd68..123668c 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6742,13 +6742,13 @@ at the text of the entry itself."
                  (+ (point-at-bol)
                     (or (org-get-at-bol 'prefix-length) 0)))))
     (cond
-     (buffer
-      (with-current-buffer buffer
-       (save-excursion
-         (save-restriction
-           (widen)
-           (goto-char marker)
-           (org-offer-links-in-entry arg prefix)))))
+     ((and buffer
+          (with-current-buffer buffer
+            (save-excursion
+              (save-restriction
+                (widen)
+                (goto-char marker)
+                (org-offer-links-in-entry arg prefix))))))
      ((or (org-in-regexp (concat "\\(" org-bracket-link-regexp "\\)"))
          (save-excursion
            (beginning-of-line 1)
-- 
1.7.2.3


Both bug report and patch have been submitted to [email protected]
but appearently weren't noticed there.

Thanks

Bert


-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages org-mode depends on:
ii  dpkg                      1.15.8.10      Debian package management system
ii  emacs23                   23.2+1-7       The GNU Emacs editor (with GTK+ us
ii  install-info              4.13a.dfsg.1-6 Manage installed documentation in 

org-mode recommends no packages.

Versions of packages org-mode suggests:
ii  easypg                        0.0.16-2.1 yet another GnuPG interface for Em
pn  remember-el                   <none>     (no description available)

-- no debconf information





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to