[Orgmode] org-collector : display problem with propview

2010-07-22 Thread d . tchin
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


Re: [Orgmode] org-collector : display problem with propview

2010-07-22 Thread Eric Schulte
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

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 d.tc...@voila.fr 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
___
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