From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [parser] feature request: column and row numbers available for table-cell elements Date: Thu, 19 Jan 2017 22:15:56 +0100 Message-ID: <87d1fiycmr.fsf@nicolasgoaziou.fr> References: <87d1fk6nk0.fsf@delle7240.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUK3x-0006Lp-Ts for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 16:16:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUK3w-00006A-P9 for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 16:16:05 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:42159) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cUK3w-00004y-IL for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 16:16:04 -0500 Received: from saiph.selenimh (00004301000000000000074b.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::74b]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id B0F761720AE for ; Thu, 19 Jan 2017 22:16:02 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.88) (envelope-from ) id 1cUK3o-0004LR-N7 for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 22:15:56 +0100 In-Reply-To: <87d1fk6nk0.fsf@delle7240.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Wed, 18 Jan 2017 21:55:11 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, Eric S Fraga 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