From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: empty titles - backtrace Date: Wed, 13 Apr 2011 10:15:47 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9vEb-0001JG-7q for emacs-orgmode@gnu.org; Wed, 13 Apr 2011 04:15:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9vET-0008Rt-Bu for emacs-orgmode@gnu.org; Wed, 13 Apr 2011 04:15:33 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:37244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9vET-0008R4-6d for emacs-orgmode@gnu.org; Wed, 13 Apr 2011 04:15:25 -0400 Received: by fxm18 with SMTP id 18so360853fxm.0 for ; Wed, 13 Apr 2011 01:15:24 -0700 (PDT) Received: from shamrock by asus1015pem with local (Exim 4.72) (envelope-from ) id 1Q9vF2-00016y-5S for emacs-orgmode@gnu.org; Wed, 13 Apr 2011 10:16:00 +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: Emacs-orgmode mailing list Is not too rare for me to accidentally wipe or neglect to add a subject line to a new journal/or entry. Of course I should have one - bUt regardless, generating the agenda shouldnt fail if it comes across an entry with no title as it can be hard to find the offending org item. e.g ,---- | Debugger entered--Lisp error: (wrong-type-argument stringp nil) | string-match("^ +" nil) | org-format-agenda-item(nil nil #("Journal" 0 7 (fontified t org-categor= y "Journal" face org-meta-line font-lock-fontified t)) (#("journal" 0 7 (in= herited t))) #("<2011-04-13 Mi 10:00>" 0 20 (org-category #("Journal" 0 7 .= ..) keymap (keymap ... ... ...) mouse-face highlight org-no-flyspell t face= org-date fontified t) 20 21 (org-category #("Journal" 0 7 ...) rear-nonsti= cky (mouse-face highlight keymap invisible intangible help-echo org-linked-= text) keymap (keymap ... ... ...) mouse-face highlight org-no-flyspell t fa= ce org-date fontified t)) "<2011-04-13.*?>") | byte-code("\306 \203\n.\307\310\311\"\210\312 \210\313\225\203$.\314\3= 15\313!\311 $U\204$.\307\310\311\"\210\n\2037.\316=0B\n{\317\f#\2047.\307\= 310\311\"\210e.=0E)Z].{.*=0B\203I.\317\202M.=0D\320 {.+.f\321U.,\322.-.*\".= .\322./.*\".0.1\205p.\322.2.*\".3.1\205\205.\322.4.*\"\206\205.\322\323.*\"= .5.%.6\235.7.0\204\254.=0E.\204\254.=0E3\204\254.=0E5\204\254.=0E7\203\261.= =0E8\203\261.\307\310\324\"\210\322\325.+\"\203\301.=0E+\326\211\225O.+\327= .!.9\330.!.:\212\331\332\311\324#\204\333.=0E;.<\202.=01\326\224b\210\327 .= =3D\333 .>\334\335!\210\315\313!.?\336.,\205\370.=0E@.?.:.>.+.A&.=16<\337.<= !.#\340.<.B\341.9\342.=3D&.\210\340.<\311\343.#\344.:\304\f\345.%\346\347&\= f\210.<.CB.C).D\203A.\350 \210\202E.=0EEb\210\311\207" [d1 show-all e3 b3 d= ate b0 org-at-date-range-p throw :skip nil org-agenda-skip 1 org-time-strin= g-to-absolute match-string org-diary-sexp-entry "" point-at-eol 91 string-m= atch "]-+\\'" t ">" 0 org-agenda-new-marker org-get-category re-search-back= ward "^\\*+ " org-get-tags-at looking-at "\\*+[ ]+\\([^.\n]+\\)" org-forma= t-agenda-item org-get-priority org-add-props org-marker org-hd-marker prior= ity org-category todo-state type "timestamp" outline-next-heading org-ds-ke= yword-length tmp timestr inactivep org-deadline-regexp deadlinep org-schedu= led-regexp scheduledp org-agenda-include-inactive-timestamps ...] 13) | org-agenda-get-timestamps() `---- Where the item in question was: ,---- | ****=20 | :PROPERTIES: | :DateCreated: <2011-04-13 Mi 10:00> | :END: |=20 | [[gnus:nntp%2BGwene:gwene.org.emacsen.planet][gnus:nntp+Gwene:gwene.org.e= macsen.planet]] `---- a nilstring check in org-format-agenda-item isnt enough. So, is there a way to enforce a default value "org wide" subject if the user accidentally deletes or doesnt enter an org subject?