Browse Source

org-agenda: Fix filter for org-habits in agenda

* lisp/org-agenda.el (org-agenda-filter-apply): Get text at bol instead
  of eol.  Note that eol can be overwritten by org-habits.
Marco Wahl 9 years ago
parent
commit
93fe1072f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -7705,7 +7705,7 @@ tags in the FILTER if any of the tags in FILTER are grouptags."
 	    (progn
 	    (progn
 	      (setq tags (org-get-at-bol 'tags)
 	      (setq tags (org-get-at-bol 'tags)
 		    cat (org-get-at-eol 'org-category 1)
 		    cat (org-get-at-eol 'org-category 1)
-		    txt (org-get-at-eol 'txt 1))
+		    txt (org-get-at-bol 'txt))
 	      (if (not (eval org-agenda-filter-form))
 	      (if (not (eval org-agenda-filter-form))
 		  (org-agenda-filter-hide-line type))
 		  (org-agenda-filter-hide-line type))
 	      (beginning-of-line 2))
 	      (beginning-of-line 2))