From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Headlines Prefixed with a Period in org-scan-tags, Why? Date: Thu, 19 Mar 2009 19:36:12 +0100 Message-ID: <9D4F1DE8-774E-4441-B358-57142DB939B8@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkN6N-0004Uq-CA for emacs-orgmode@gnu.org; Thu, 19 Mar 2009 14:36:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkN6I-0004Mx-Aq for emacs-orgmode@gnu.org; Thu, 19 Mar 2009 14:36:22 -0400 Received: from [199.232.76.173] (port=36948 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkN6H-0004Md-TL for emacs-orgmode@gnu.org; Thu, 19 Mar 2009 14:36:18 -0400 Received: from mail-fx0-f166.google.com ([209.85.220.166]:56548) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LkN6H-0004aN-FG for emacs-orgmode@gnu.org; Thu, 19 Mar 2009 14:36:17 -0400 Received: by fxm10 with SMTP id 10so576749fxm.42 for ; Thu, 19 Mar 2009 11:36:16 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Jones Cc: emacs-orgmode@gnu.org 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. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode