From: Eric Schulte <schulte.eric@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [Bug] #+call does not respect :colnames argument
Date: Fri, 26 Jul 2013 18:54:08 -0600 [thread overview]
Message-ID: <87zjt8g6vj.fsf@gmail.com> (raw)
In-Reply-To: <20130726205233.GA72349@BigDog.local> (Rick Frankel's message of "Fri, 26 Jul 2013 16:52:33 -0400")
Rick Frankel <rick@rickster.com> writes:
> On Fri, Jul 26, 2013 at 11:53:33AM -0600, Eric Schulte wrote:
>> Rick Frankel <rick@rickster.com> writes:
>>
>> > I have debugged why the :colnames argument is not respected as to
>> > removing the header from a table var.
>
>> Thanks for taking the time to find the root of this problem. I believe
>> I've fixed this by change the `org-babel-merge-params' function so that
>> when the value of a variable is update, then colname-names and
>> rowname-names values saved for that variable are removed.
>>
>> In my local tests the attached patch fixes this issue. If it works for
>> you as well then I'll apply it.
>
> Works for me. Thanx, this will simplify a lot of code (e.g., the
> example dot-from-tables that was floating around last week)
>
> Aside... It's difficult for me to follow the code, so can you explain
> the why the different results between:
>
> #+call: emacs-echo(table=with-hline2) :colnames yes
>
> #+results:
> | B | C | D |
> |---+---+---|
> | 3 | 4 | 5 |
> | 6 | 7 | 8 |
>
> and
>
> #+call: emacs-echo(table=with-hline2)[:colnames yes]
>
> #+results:
> | B | C | D |
>
The later is not valid call line syntax, see [1] for a full description
of the call line syntax. In effect what happens in the latter case, is
you set :colnames to "yes]".
I've just pushed up that patch.
Thanks for you help debugging this.
>
>
> thanx again,
> rick
Footnotes:
[1] (info "(org)Evaluating Code Blocks")
--
Eric Schulte
http://cs.unm.edu/~eschulte
next prev parent reply other threads:[~2013-07-27 0:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-26 15:12 [Bug] #+call does not respect :colnames argument Rick Frankel
2013-07-26 17:53 ` Eric Schulte
2013-07-26 20:52 ` Rick Frankel
2013-07-27 0:54 ` Eric Schulte [this message]
2013-07-29 1:10 ` Rick Frankel
2013-07-29 4:18 ` Achim Gratz
2013-07-29 14:00 ` Eric Schulte
2013-07-29 17:01 ` Achim Gratz
2013-07-29 17:20 ` 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
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=87zjt8g6vj.fsf@gmail.com \
--to=schulte.eric@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).