* Inserting a table
@ 2022-11-04 20:33 Christopher Dimech
2022-11-04 20:52 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: Christopher Dimech @ 2022-11-04 20:33 UTC (permalink / raw)
To: Help Gnu Emacs
Have been trying to insert a table but am finding quite difficult
following the source code.
(defun make-table ()
(interactive)
(table-insert 4 5)
(table-forward-cell)
(table-insert-sequence "column " 1 1 1 'center)
(table-forward-cell 4)
(table-insert-sequence "column 2" 1 1 1 'center)
(table-release)
)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inserting a table
2022-11-04 20:33 Inserting a table Christopher Dimech
@ 2022-11-04 20:52 ` Eli Zaretskii
2022-11-04 21:13 ` Christopher Dimech
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2022-11-04 20:52 UTC (permalink / raw)
To: help-gnu-emacs
> From: Christopher Dimech <dimech@gmx.com>
> Date: Fri, 4 Nov 2022 21:33:43 +0100
>
> Have been trying to insert a table but am finding quite difficult
> following the source code.
Why don't you follow the large commentary at the beginning of table.el
instead?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inserting a table
2022-11-04 20:52 ` Eli Zaretskii
@ 2022-11-04 21:13 ` Christopher Dimech
2022-11-04 21:24 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 5+ messages in thread
From: Christopher Dimech @ 2022-11-04 21:13 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
> Sent: Saturday, November 05, 2022 at 8:52 AM
> From: "Eli Zaretskii" <eliz@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Inserting a table
>
> > From: Christopher Dimech <dimech@gmx.com>
> > Date: Fri, 4 Nov 2022 21:33:43 +0100
> >
> > Have been trying to insert a table but am finding quite difficult
> > following the source code.
>
> Why don't you follow the large commentary at the beginning of table.el
> instead?
The difficulty is how to insert text in a particular cell.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inserting a table
2022-11-04 21:13 ` Christopher Dimech
@ 2022-11-04 21:24 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-05 7:19 ` Heime
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2022-11-04 21:24 UTC (permalink / raw)
To: help-gnu-emacs
>> Why don't you follow the large commentary at the beginning of table.el
>> instead?
>
> The difficulty is how to insert text in a particular cell.
IIUC `table.el` was designed under the assumption that the table would
be edited interactively rather than from ELisp.
I'm not saying it won't work, but the lack of info may just reflect that
nobody has thought about it yet. Maybe you can contribute to the doc
(and/or code if it proves necessary) after you find out how to do it?
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inserting a table
2022-11-04 21:24 ` Stefan Monnier via Users list for the GNU Emacs text editor
@ 2022-11-05 7:19 ` Heime
0 siblings, 0 replies; 5+ messages in thread
From: Heime @ 2022-11-05 7:19 UTC (permalink / raw)
To: Stefan Monnier; +Cc: help-gnu-emacs
------- Original Message -------
On Friday, November 4th, 2022 at 9:24 PM, Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> > > Why don't you follow the large commentary at the beginning of table.el
> > > instead?
> >
> > The difficulty is how to insert text in a particular cell.
>
>
> IIUC `table.el` was designed under the assumption that the table would
> be edited interactively rather than from ELisp.
> I'm not saying it won't work, but the lack of info may just reflect that
> nobody has thought about it yet. Maybe you can contribute to the doc
> (and/or code if it proves necessary) after you find out how to do it?
>
> Stefan
I agree with your general assessment. It would certainly be useful for many
users in rapidly insert tables programatically. I find tables useful for
displaying status information on emacs setup for instance. For instance, to
show what features and associated customisations have been enabled and set.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-05 7:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-04 20:33 Inserting a table Christopher Dimech
2022-11-04 20:52 ` Eli Zaretskii
2022-11-04 21:13 ` Christopher Dimech
2022-11-04 21:24 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-05 7:19 ` Heime
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.