From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-collector : display problem with propview Date: Thu, 22 Jul 2010 10:00:39 -0700 Message-ID: <87d3uffo3s.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=43819 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Obz8d-0006nU-SN for emacs-orgmode@gnu.org; Thu, 22 Jul 2010 13:00:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Obz8a-0007Ry-UG for emacs-orgmode@gnu.org; Thu, 22 Jul 2010 13:00:51 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:37056) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Obz8a-0007RO-Pg for emacs-orgmode@gnu.org; Thu, 22 Jul 2010 13:00:48 -0400 Received: by pxi7 with SMTP id 7so7660732pxi.0 for ; Thu, 22 Jul 2010 10:00:47 -0700 (PDT) In-Reply-To: (d. tchin's message of "Thu, 22 Jul 2010 08:52:08 +0000 (UTC)") 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: "d.tchin" Cc: emacs-orgmode@gnu.org --=-=-= Hi, The following minimal patch to org-collector.el should remove tags from the ITEM text, which will also remove the many "\n" characters. Please let me know if this works for you. Thanks -- Eric --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org-collector-w-o-tags.patch diff --git a/contrib/lisp/org-collector.el b/contrib/lisp/org-collector.el index 72eb8f2..2646b3f 100644 --- a/contrib/lisp/org-collector.el +++ b/contrib/lisp/org-collector.el @@ -177,7 +177,7 @@ variables and values specified in props" ;; collect the properties from every header (let* ((header-props (let ((org-trust-scanner-tags t)) - (org-map-entries (quote (cons (cons "ITEM" (org-get-heading)) + (org-map-entries (quote (cons (cons "ITEM" (org-get-heading t)) (org-entry-properties))) match scope))) ;; read property values --=-=-= d.tchin writes: > Hi > > I try to use org-collector. Since I have changed org-mode to release 7.01 > there is a modification in the display of propview. > > > Below an example : > > --------------------------------------------------------- > > * View > #+BEGIN: propview :cols (ITEM CATEGORY) :scope tree :match "Inside1" > | "ITEM" | "CATEGORY" | > |--------------------------------------------+--------------| > | "Inside first a \n\n\n\n\n\n :Inside1:" | "firstentry" | > | "Inside first b \n\n\n\n\n\n :Inside1:" | "firstentry" | > |--------------------------------------------+--------------| > | | | > #+END: > > > #+BEGIN: propview :cols (ITEM CATEGORY) :scope tree :match "Inside2" > | "ITEM" | "CATEGORY" | > |------------------------------------------+---------------| > | "Inside second\n\n\n\n\n\n :Inside2:" | "secondentry" | > |------------------------------------------+---------------| > | | | > #+END: > > ** First entry > :PROPERTIES: > :CATEGORY: firstentry > :END: > *** Inside first a :Inside1: > *** Inside first b :Inside1: > ** Second entry > :PROPERTIES: > :CATEGORY: secondentry > :END: > *** Inside second :Inside2: > > ---------------------------------------------------------------------------- > > There were "\n" added after ITEM entry then the tag. > > Subsidiary question : is it possible not to display the tag in propview > ang ITEM entry. > > > GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON > Org-mode version 7.01 > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--