From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles.Sebold@lcms.org (Sebold, Charles) Subject: Re: Making the output of %% functions linkable in agenda views Date: Tue, 03 May 2011 15:17:49 -0500 Message-ID: References: <87aaf3tv5l.fsf@fastmail.fm> <8762prtul0.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHM2a-0005xI-Ns for emacs-orgmode@gnu.org; Tue, 03 May 2011 16:17:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHM2Z-0004sd-5z for emacs-orgmode@gnu.org; Tue, 03 May 2011 16:17:52 -0400 Received: from ctms100.concordiatech.org ([216.88.180.170]:14850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHM2Z-0004sM-35 for emacs-orgmode@gnu.org; Tue, 03 May 2011 16:17:51 -0400 In-Reply-To: <8762prtul0.fsf@fastmail.fm> (Matt Lundin's message of "Tue, 03 May 2011 16:09:15 -0400") 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: Matt Lundin Cc: "Sebold, Charles" , emacs-orgmode On 3 May 2011, Matt Lundin wrote: > I should clarify. I, too, can see the link in the agenda. I had been > under the impression that only diary sexps will appear in the agenda, > but it seems that a generic sexp that returns a string will also show > up. > > I'm not sure whether this is a feature or a bug. OK, I see now. I built this based on the behavior of google-weather-el, which includes a function for inclusion in agendas. I think it's a feature; in my (real-world) case, my function runs based on the value of the local variable `date' (apparently set when the agenda is built) and provides a correspondingly different result for every day's agenda. That is legitimately useful. Google-weather-el works the same way. See: (info "(org)Weekly/daily agenda") ...for examples of org-mode itself using this (e.g., for org-calendar-holiday, org-bbdb-anniversary, etc.). -- Charles Sebold 3rd of May, 2011 GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) No Gnus v0.18 | Org-mode version 7.5 (release_7.5.246.ga35b4)