emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Inserting tables programatically in elisp
@ 2022-11-05  7:41 Heime
  2022-11-05  8:49 ` Ihor Radchenko
  2022-11-05  9:02 ` Jean Louis
  0 siblings, 2 replies; 7+ messages in thread
From: Heime @ 2022-11-05  7:41 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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.
 




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-05 10:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-05  7:41 Inserting tables programatically in elisp Heime
2022-11-05  8:49 ` Ihor Radchenko
2022-11-05  9:20   ` Heime
2022-11-05  9:02 ` Jean Louis
2022-11-05  9:26   ` Heime
2022-11-05 10:05     ` Jean Louis
2022-11-05 10:23     ` Jean Louis

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