emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] faster org-table-align


From: Nicolas Goaziou
Subject: Re: [PATCH] faster org-table-align
Date: Fri, 08 May 2020 15:44:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello,

tbanelwebmin <address@hidden> writes:

> `org-table-align' may benefit from recent `org-table-to-lisp'
> speed-up.
>
> The current code contains the following lines in org-table.el. They
> parse the table into a Lisp structure, which is precisely what
> `org-table-to-lisp' is supposed to do.
>
>   (fields (mapcar
>            (lambda (l)
>              (and (not (string-match-p org-table-hline-regexp l))
>                   (org-split-string l "[ \t]*|[ \t]*")))
>            (split-string (buffer-substring beg end) "\n" t)))
>
> Just replace them by a call to `org-table-to-lisp':
>
>   (fields (cl-loop for row in (org-table-to-lisp)
>                   collect (and (listp row) row)))

Good catch! I applied a similar change in master. Let me know how it
goes.

Thank you!

Regards,

-- 
Nicolas Goaziou



reply via email to

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