diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2011-11-14 08:35:12 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2011-11-14 08:35:12 +0100 |
commit | b43c1c621f52f4a51d8d79cb76c226dfed003998 (patch) | |
tree | d61f73cf36425873dc6dce227bf3c2f98d11fe71 | |
parent | 57caa09106cfcff5cec8535c00256e02b4d2bd8c (diff) | |
download | org-mode-b43c1c621f52f4a51d8d79cb76c226dfed003998.tar.gz |
Fix function call order in previous patch
* lisp/org-agenda.el (org-agenda-get-todos): Swap calls to `org-trim' and
`buffer-substring'.
-rw-r--r-- | lisp/org-agenda.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 65a92f5..0a98fbe 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -4626,8 +4626,8 @@ the documentation of `org-diary'." (setq marker (org-agenda-new-marker (match-beginning 0)) category (org-get-category) org-category-pos (get-text-property (point) 'org-category-position) - txt (buffer-substring - (org-trim (match-beginning 2) (match-end 0))) + txt (org-trim + (buffer-substring (match-beginning 2) (match-end 0))) tags (org-get-tags-at (point)) txt (org-agenda-format-item "" txt category tags) priority (1+ (org-get-priority txt)) |