emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH] Headlines Prefixed with a Period in org-scan-tags,


From: Carsten Dominik
Subject: Re: [Orgmode] [PATCH] Headlines Prefixed with a Period in org-scan-tags, Why?
Date: Thu, 19 Mar 2009 19:36:12 +0100


Hi Peter,

this is supposed to be a feature, showing that these lines are sublevels of a line that already matched. I guess we can create a variable to turn this off - you are right that it has no functionality otherwise.

- Carsten

P.S. Do you have a copyright assignment, I forgot, but I have the feeling that I would like to have one ... :-)

On Mar 19, 2009, at 6:29 PM, Peter Jones wrote:

I'm looking at this code in org-scan-tags (org.el):

(concat
(if org-tags-match-list-sublevels
    (make-string (1- level) ?.) "")
(org-get-heading))

Which causes items in my agenda buffer to be prefixed with a series of
periods. I've been looking around org.el, and org-agenda.el, and don't
see any code that relies on those periods being there.

If I remove that if expression, the agenda looks the way I'd expect,
with no noticeable consequences.

Is there any reason the patch below would break something in Org?

diff --git a/lisp/org.el b/lisp/org.el
index dabf306..b19e3d1 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9969,10 +9969,7 @@ only lines with a TODO keyword are included in the output."
             ((eq action 'agenda)
              (setq txt (org-format-agenda-item
                         ""
-                        (concat
-                         (if org-tags-match-list-sublevels
-                             (make-string (1- level) ?.) "")
-                         (org-get-heading))
+                         (org-get-heading)
                         category
                         ;(org-get-tags-at)
                         tags-list


--
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]