From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: [Accepted] Fix agenda display when headlines are missing Date: Fri, 15 Apr 2011 13:55:09 +0200 (CEST) Message-ID: <20110415115509.BA049412BBE@u016822.science.uva.nl> References: <1302696730-14326-1-git-send-email-bernt@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAiBL-00074I-Eg for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 08:31:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAiBJ-0007LF-Vy for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 08:31:27 -0400 Received: from u016822.science.uva.nl ([146.50.39.34]:52996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAiBJ-0007Kt-Oo for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 08:31:25 -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: emacs-orgmode@gnu.org Patch 748 (http://patchwork.newartisans.com/patch/748/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C1302696730-14326-1-git-send-email-bernt%40norang.ca%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O] Fix agenda display when headlines are missing > Date: Wed, 13 Apr 2011 17:12:10 -0000 > From: Bernt Hansen > X-Patchwork-Id: 748 > Message-Id: <1302696730-14326-1-git-send-email-bernt@norang.ca> > To: emacs-orgmode@gnu.org > Cc: Richard Riley , Bernt Hansen > > * lisp/org-agenda.el (org-agenda-get-timestamps): Fix agenda display when headlines are missing > > The following entry breaks the agenda display. > > ,---- > | **** > | :PROPERTIES: > | :DateCreated: <2011-04-13 Mi 10:00> > | :END: > | > | [[gnus:nntp%2BGwene:gwene.org.emacsen.planet][gnus:nntp+Gwene:gwene.org.emacsen.planet]] > `---- > > Provide the empty string as the headline if the search for the > headline returns nil. org-format-agenda-items requires a string for > the headline parameter. > > --- > Hi Richard, > > This should if your issue. Please test it and report back. > This patch is available at git://git.norang.ca/org-mode.git fix-agenda-empty-headines > > Regards, > Bernt > > > lisp/org-agenda.el | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el > index 5571838..768c417 100644 > --- a/lisp/org-agenda.el > +++ b/lisp/org-agenda.el > @@ -4710,7 +4710,7 @@ This function is invoked if `org-agenda-todo-ignore-deadlines', > (setq hdmarker (org-agenda-new-marker) > tags (org-get-tags-at)) > (looking-at "\\*+[ \t]+\\([^\r\n]+\\)") > - (setq head (match-string 1)) > + (setq head (or (match-string 1) "")) > (setq txt (org-format-agenda-item > (if inactivep org-agenda-inactive-leader nil) > head category tags timestr >