emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode@gnu.org
Subject: Re: [parser] feature request: column and row numbers available for table-cell elements
Date: Thu, 19 Jan 2017 22:15:56 +0100	[thread overview]
Message-ID: <87d1fiycmr.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87d1fk6nk0.fsf@delle7240.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Wed, 18 Jan 2017 21:55:11 +0000")

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Would it be possible to extend the table-cell element in the parser to
> add :row and :column attributes that have the internal org values, as
> used by the formulae?

I don' think this is needed since this information is readily available
during the export process. For example

  (1+ (length (org-export-get-previous-element table-cell info 'all)))

returns the column number table-cell belongs to, whereas

  (1+ (cl-count-if
       (lambda (row) (eq (org-element-property :type row) 'standard))
       (org-export-get-previous-element (org-export-get-parent table-cell) 'all)))

returns the row number.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-01-19 21:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-18 21:55 [parser] feature request: column and row numbers available for table-cell elements Eric S Fraga
2017-01-19 21:15 ` Nicolas Goaziou [this message]
     [not found] ` <a6c057b982054dc896ad78973aa0d220@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-19 22:18   ` Eric S Fraga
2017-01-20  8:09   ` Eric S Fraga

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=87d1fiycmr.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.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 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).