emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug in getting category
@ 2011-10-22 14:25 Daniel Clemente
  0 siblings, 0 replies; only message in thread
From: Daniel Clemente @ 2011-10-22 14:25 UTC (permalink / raw)
  To: org-mode Mailinglist

  with org-mode from today I created a file miso.org with this content:
* aaa
  :CATEGORY: bbb
** TODO ccc

  Then I used an ~/.emacs which said:
(progn (add-to-list 'load-path "/w/org-mode/lisp") (require 'org-install) (require 'org) (require 'org-agenda))
(org-agenda-get-day-entries "/home/dc/miso.org" '(10 22 2011) :todo)

  And after running „emacs“ I got:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("^ +" nil)
  (if (string-match "^ +" txt) (setq txt (replace-match "" nil nil txt)))
  (progn (if (string-match "^ +" txt) (setq txt (replace-match "" nil nil txt))) (setq txt  …
  (unwind-protect (progn (if (string-match "^ +" txt) (setq txt (replace-match "" nil nil tx…
  (let ((save-match-data-internal (match-data))) (unwind-protect (progn (if (string-match "^ +" txt) …
  (save-match-data (if (string-match "^ +" txt) (setq txt (replace-match "" nil nil txt))) (setq …
  org-format-agenda-item("" nil #("bbb" 0 3 (fontified nil org-category "miso")) nil)
  (setq marker (org-agenda-new-marker (match-beginning 0)) category (org-get-category) txt (match-string 1) …
  (catch :skip (save-match-data (beginning-of-line) (setq beg (point) end (save-excursion (out…
  (while (re-search-forward regexp nil t) (catch :skip (save-match-data (beginning-of-line) (se…
  (let* ((props (list (quote face) nil (quote done-face) (quote org-agenda-done) (quote org-not…
]*\\)")) marker priority category tags todo-state ee txt beg end) (goto-char (point-min)) (whil…
  (setq rtn (org-agenda-get-todos))

  The second time I ran the code from .emacs I got it right:
(#("TODO ccc" 0 8 (org-category #("bbb" 0 3 ...) fontified nil tags nil org-highest-priority 65 org-lowest-priority 67 prefix-length 0 ...)))

  Which seems to be inappropriate, as in previous versions I get:
(#("TODO ccc" 0 8 (fontified nil org-category nil tags nil org-highest-priority 65 org-lowest-priority 67 prefix-length 0 ...)))

  Via git bisect I traced the bug to:
ca733df0d41eccced5f8f1abb85d525cb12dd21f is the first bad commit
commit ca733df0d41eccced5f8f1abb85d525cb12dd21f
Author: Carsten Dominik <carsten.dominik@gmail.com>
Date:   Mon Jan 3 13:12:42 2011 +0100

    Move the category property refresh to org-get-category where possible



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-22 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-22 14:25 bug in getting category Daniel Clemente

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).