From: "Eric Schulte" <schulte.eric@gmail.com>
To: "d.tchin" <d.tchin@voila.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-collector : display problem with propview
Date: Thu, 22 Jul 2010 10:00:39 -0700 [thread overview]
Message-ID: <87d3uffo3s.fsf@gmail.com> (raw)
In-Reply-To: <loom.20100722T103812-336@post.gmane.org> (d. tchin's message of "Thu, 22 Jul 2010 08:52:08 +0000 (UTC)")
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-collector-w-o-tags.patch --]
[-- Type: text/x-diff, Size: 569 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 1969 bytes --]
d.tchin <d.tchin@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
[-- Attachment #4: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2010-07-22 17:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 8:52 org-collector : display problem with propview d.tchin
2010-07-22 9:00 ` d.tchin
2010-07-22 17:00 ` Eric Schulte [this message]
2010-07-23 7:16 ` d.tchin
2010-07-23 16:38 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d3uffo3s.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=d.tchin@voila.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.