From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [Accepted] Making the output of %% functions linkable in agenda views Date: Fri, 06 May 2011 07:47:43 -0400 Message-ID: <87aaf0oxsw.fsf@fastmail.fm> References: <87aaf3tv5l.fsf@fastmail.fm> <20110504074311.96ACF43B354@u016822.science.uva.nl> <80ei4c5kvp.fsf@ID-264851.user.dfncis.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIJVc-00031C-9A for emacs-orgmode@gnu.org; Fri, 06 May 2011 07:47:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIJVa-0001kT-NS for emacs-orgmode@gnu.org; Fri, 06 May 2011 07:47:48 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:53366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIJVa-0001kP-L0 for emacs-orgmode@gnu.org; Fri, 06 May 2011 07:47:46 -0400 In-Reply-To: <80ei4c5kvp.fsf@ID-264851.user.dfncis.de> (Bert Burgemeister's message of "Fri, 06 May 2011 09:49:30 +0200") 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: Bert Burgemeister Cc: emacs-orgmode@gnu.org Bert Burgemeister writes: > Just curious, is there anything I should have known that prevented the > patch submitted in http://article.gmane.org/gmane.emacs.orgmode/39313, Is it still in the bugtracker, or was it rejected? (I attempted to check myself, but the patchwork site seems to be down right now.) There has been a cascade of patches on the list recently (I plead guilty to adding my fair share), and there aren't many people who are authorized to push to the repo. With your patch, what would happen if there were two or more links in the headline? * Two links %%(format "%s" (concat "[[elisp:(info)]" "[Link to info]]")) http://www.orgmode.org This entry would show up in the agenda as: org: [[elisp:(info)][Link to info]] But AFAICT, hitting C-c C-o in the agenda-buffer (even on the elisp link) would jump immediately to http://www.orgmode.org, bypassing the opportunity to select the the %%(...) generated link. Best, Matt >> From: Bert Burgemeister >> Subject: [O] [PATCH] Bugfix: org-agenda-open-link >> Newsgroups: gmane.emacs.orgmode >> To: emacs-orgmode@gnu.org >> Date: Sun, 13 Mar 2011 16:18:44 +0100 >> >> >> * 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). >> >> TINYCHANGE >> --- >> >> >> The bug was apparently introduced in commit >> ba1e90893d128d8004e4cb6763af692c5a6cd677. >> >> -- >> Bert >> >> >> >> 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 > > from being noticed?