forked from mirrors/org-mode
org-agenda-filter-by-category: Fix using truncated category as a filter
* lisp/org-agenda.el (org-agenda-format-item): Do not store truncated category in 'org-category property when `org-agenda-prefix-format' causes truncation. This leads to agenda filters assuming truncated version of the category as the true value, which is incorrect. Reported-by: John Mathena <jmmathena@gmail.com> Link: https://orgmode.org/list/CADywB5Lonxw-t1H7cvK+Au3oWq=EsB=Bthj13pt03MRP-Fn-4w@mail.gmail.com
This commit is contained in:
parent
4b1399fb21
commit
19db45f2cc
|
@ -6966,6 +6966,7 @@ Any match of REMOVE-RE will be removed from TXT."
|
|||
(file-name-sans-extension
|
||||
(file-name-nondirectory buffer-file-name))
|
||||
"")))
|
||||
(full-category category)
|
||||
(category-icon (org-agenda-get-category-icon category))
|
||||
(category-icon (if category-icon
|
||||
(propertize " " 'display category-icon)
|
||||
|
@ -7093,7 +7094,9 @@ Any match of REMOVE-RE will be removed from TXT."
|
|||
;; And finally add the text properties
|
||||
(remove-text-properties 0 (length rtn) '(line-prefix t wrap-prefix t) rtn)
|
||||
(org-add-props rtn nil
|
||||
'org-category category
|
||||
;; CATEGORY might be truncated. Store the full category in
|
||||
;; the properties.
|
||||
'org-category full-category
|
||||
'tags tags
|
||||
'org-priority-highest org-priority-highest
|
||||
'org-priority-lowest org-priority-lowest
|
||||
|
|
Loading…
Reference in New Issue