emacs-orgmode
[Top][All Lists]
Advanced

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

Inserting tables programatically in elisp


From: Heime
Subject: Inserting tables programatically in elisp
Date: Sat, 05 Nov 2022 07:41:57 +0000

Have been introspecting the possibility of conveniently inserting table 
programatically
in elisp and encountered "table.el".

Have constructed this function, but the difficulty centers around
the challenge of inserting text in specific tests.

(defun make-table ()
  (interactive)
  (table-insert 4 5)
  (table-forward-cell)
  (table-insert-sequence "icomplt-horz" 1 1 1 'center)
  (table-forward-cell 4)
  (table-insert-sequence "icomplt-vert" 1 1 1 'center)
  (table-release))

It might be that "table.el" was designed under the assumption that the table 
would
be edited interactively rather than from ELisp.  The lack of info may just 
reflect
that nobody has thought about it making tables programatically that also goes 
beyond
its utilisation in "org-mode".

I understand that "Org" cooperates with its author Takaaki Ota, perhaps things 
could
be extended in a way that makes inserting tables programatically much easier to 
work
with.
 





reply via email to

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