emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Jonathan BISSON <bissonjonathan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Adding features to contrib/lisp/org-collector.el (propview)
Date: Fri, 28 Oct 2011 08:37:29 -0600	[thread overview]
Message-ID: <87bot1uqqe.fsf@gmail.com> (raw)
In-Reply-To: <4EAA76DA.6070304@gmail.com> (Jonathan BISSON's message of "Fri, 28 Oct 2011 11:33:14 +0200")

Hi Jonathan,

This does sound useful.  Unfortunately your email client seems to have
mangled the patch, could you resend with the patch attached rather than
pasted inline?

Thanks -- Eric

Jonathan BISSON <bissonjonathan@gmail.com> writes:

> Hi there,
>
>
> I did a small patch for org-collector.
>
> Here are the changes :
> - Adding a :colnames property, allowing to give the column names
> (instead of displaying the function used to populate the table)
> - Adding a :noquote property, allowing to remove the double quotes
> around strings
>
> I hope some of you would find it useful.
>
> 121a122,123
>> 	    (noquote (plist-get params :noquote))
>> 	    (colnames (plist-get params :colnames))
> 132a135
>> 	  (setq stringformat (if noquote "%s" "%S"))
> 134c137,138
> < 		       (org-propview-collect cols conds match scope inherit)))
> ---
>> 		       (org-propview-collect cols stringformat conds match scope
> inherit
>> 					     (if colnames colnames cols)) stringformat))
> 170c174
> < (defun org-propview-collect (cols &optional conds match scope inherit)
> ---
>> (defun org-propview-collect (cols stringformat &optional conds match
> scope inherit colnames)
> 194,195c198,199
> <       (mapcar (lambda (el) (format "%S" el)) cols) ;; output headers
> <       'hline) ;; ------------------------------------------------
> ---
>>       (if colnames colnames (mapcar (lambda (el) (format stringformat
> el)) cols))
>>        'hline) ;; ------------------------------------------------
> 214c218
> < (defun org-propview-to-table (results)
> ---
>> (defun org-propview-to-table (results stringformat)
> 221c225
> < 	(mapcar (lambda (el) (format "%S" el)) row)))
> ---
>> 	(mapcar (lambda (el) (format stringformat el)) row)))
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

      parent reply	other threads:[~2011-10-28 14:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28  9:33 [PATCH] Adding features to contrib/lisp/org-collector.el (propview) Jonathan BISSON
2011-10-28 14:32 ` Bastien
2011-10-28 14:41   ` Jonathan BISSON
2011-10-28 14:56     ` Bastien
2011-10-28 17:01       ` Eric Schulte
2011-10-28 14:37 ` Eric Schulte [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bot1uqqe.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=bissonjonathan@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).