[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [parser] feature request: column and row numbers available for t

From: Eric S Fraga
Subject: Re: [O] [parser] feature request: column and row numbers available for table-cell elements
Date: Fri, 20 Jan 2017 08:09:28 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Hi Nicolas,

On Thursday, 19 Jan 2017 at 21:15, Nicolas Goaziou wrote:
> 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)))

Well, this returns the column number in the elided table, not the
original table.  In other words, after columns have been removed before
processing for export.

I need the row and column numbers in the original table in the org file,
not what is actually exported!

> 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)))

And this one gives me an error which I do not understand:

| Debugger entered--Lisp error: (wrong-type-argument listp table-row)
|   org-element-property(:type table-row)
|   (eq (org-element-property :type row) (quote standard))
|   (lambda (row) (eq (org-element-property :type row) (quote 
|   cl-count(nil (table-row (:type rule :begin 76 :end 96 :contents-begin nil 
|   apply(cl-count nil (table-row (:type rule :begin 76 :end 96 [...]
|   cl-count-if((lambda (row) (eq (org-element-property :type row) [...]

Any suggestions very welcome!


: Eric S Fraga (0xFFFCF67D), Emacs, Org release_9.0.3-241-gc3d67b

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]