* Editing table.el tables in Org files
@ 2013-01-08 11:57 Jacobo de Vera
2013-01-08 13:38 ` Bastien
0 siblings, 1 reply; 10+ messages in thread
From: Jacobo de Vera @ 2013-01-08 11:57 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 799 bytes --]
Hi List,
I am trying to include to include a table with multi line cells in an org
file and found out from the manual that it has to be a table.el table. I
also read that those tables cannot be edited in org-mode directly, so I am
trying to use C-c ' to edit them. I was expecting, because of the wording
of the manual, that this would bring the whole table into a new buffer, as
it does for code snippets, but instead, what I get is a formula editor. Is
this normal?
What I have done so far is to create a new file myself, copy the table
over, edit there and copy back to org file, but it seems like there should
be an easier way to go about this. Is there one?
Thanks for this amazing piece of software that has made this hardcore vim
user for 10 years start using emacs :)
--
Jacobo de Vera
[-- Attachment #2: Type: text/html, Size: 919 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 11:57 Editing table.el tables in Org files Jacobo de Vera
@ 2013-01-08 13:38 ` Bastien
2013-01-08 14:35 ` Jacobo de Vera
0 siblings, 1 reply; 10+ messages in thread
From: Bastien @ 2013-01-08 13:38 UTC (permalink / raw)
To: Jacobo de Vera; +Cc: emacs-orgmode
Hi Jacobo,
Jacobo de Vera <devel@jacobodevera.com> writes:
> What I have done so far is to create a new file myself, copy the
> table over, edit there and copy back to org file, but it seems like
> there should be an easier way to go about this. Is there one?
I'd suggest to simply wrap the table into a "#+BEGIN_EXAMPLE" block or
a "#+BEGIN_SRC text" source block. That way C-c ' will do the right
thing.
Hope that helps,
--
Bastien
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 13:38 ` Bastien
@ 2013-01-08 14:35 ` Jacobo de Vera
2013-01-08 14:57 ` Bastien
0 siblings, 1 reply; 10+ messages in thread
From: Jacobo de Vera @ 2013-01-08 14:35 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 920 bytes --]
On Tue, Jan 8, 2013 at 1:38 PM, Bastien <bzg@altern.org> wrote:
> Hi Jacobo,
>
> Jacobo de Vera <devel@jacobodevera.com> writes:
>
> > What I have done so far is to create a new file myself, copy the
> > table over, edit there and copy back to org file, but it seems like
> > there should be an easier way to go about this. Is there one?
>
> I'd suggest to simply wrap the table into a "#+BEGIN_EXAMPLE" block or
> a "#+BEGIN_SRC text" source block. That way C-c ' will do the right
> thing.
>
> Hope that helps,
>
> --
> Bastien
>
It helps indeed, only now when I export it to html I get the ascii table
rather than the html table. I guess I'm supposed to wrap my table in an
example block or a source block only temporarily. But I still wonder if
this is what the manual refers to when it says that you can edit the table
with C-c ', that is, just the formulas, not the table itself.
Regards,
--
Jacobo de Vera
[-- Attachment #2: Type: text/html, Size: 1675 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 14:35 ` Jacobo de Vera
@ 2013-01-08 14:57 ` Bastien
2013-01-08 15:15 ` Jacobo de Vera
2013-01-08 16:17 ` Jacobo de Vera
0 siblings, 2 replies; 10+ messages in thread
From: Bastien @ 2013-01-08 14:57 UTC (permalink / raw)
To: Jacobo de Vera; +Cc: emacs-orgmode
Hi Jacobo,
Jacobo de Vera <devel@jacobodevera.com> writes:
> It helps indeed, only now when I export it to html I get the ascii
> table rather than the html table. I guess I'm supposed to wrap my
> table in an example block or a source block only temporarily. But I
> still wonder if this is what the manual refers to when it says that
> you can edit the table with C-c ', that is, just the formulas, not
> the table itself.
This is a regression, fixed now.
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 14:57 ` Bastien
@ 2013-01-08 15:15 ` Jacobo de Vera
2013-01-08 16:17 ` Jacobo de Vera
1 sibling, 0 replies; 10+ messages in thread
From: Jacobo de Vera @ 2013-01-08 15:15 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]
On Tue, Jan 8, 2013 at 2:57 PM, Bastien <bzg@altern.org> wrote:
> Hi Jacobo,
>
> Jacobo de Vera <devel@jacobodevera.com> writes:
>
> > It helps indeed, only now when I export it to html I get the ascii
> > table rather than the html table. I guess I'm supposed to wrap my
> > table in an example block or a source block only temporarily. But I
> > still wonder if this is what the manual refers to when it says that
> > you can edit the table with C-c ', that is, just the formulas, not
> > the table itself.
>
> This is a regression, fixed now.
>
> Thanks!
>
> --
> Bastien
>
Great! That was fast, thanks!
--
Jacobo de Vera
[-- Attachment #2: Type: text/html, Size: 1174 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 14:57 ` Bastien
2013-01-08 15:15 ` Jacobo de Vera
@ 2013-01-08 16:17 ` Jacobo de Vera
2013-01-08 17:33 ` Bastien
1 sibling, 1 reply; 10+ messages in thread
From: Jacobo de Vera @ 2013-01-08 16:17 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]
On Tue, Jan 8, 2013 at 2:57 PM, Bastien <bzg@altern.org> wrote:
> Hi Jacobo,
>
> Jacobo de Vera <devel@jacobodevera.com> writes:
>
> > It helps indeed, only now when I export it to html I get the ascii
> > table rather than the html table. I guess I'm supposed to wrap my
> > table in an example block or a source block only temporarily. But I
> > still wonder if this is what the manual refers to when it says that
> > you can edit the table with C-c ', that is, just the formulas, not
> > the table itself.
>
> This is a regression, fixed now.
>
> Thanks!
>
> --
> Bastien
>
Hi,
I just tested the fix, but what seems to be happening now is that C-c '
will jump to formula editing in all cases, when a table.el table is
directly on the org buffer, when it is within an example block and when it
is within a source block. I understood the fix would do the opposite, i.e.,
have C-c ' edit the table itself in all these three cases. Did I
misunderstand or this still a bug?
Thanks,
--
Jacobo de Vera
[-- Attachment #2: Type: text/html, Size: 1697 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 16:17 ` Jacobo de Vera
@ 2013-01-08 17:33 ` Bastien
2013-01-08 18:59 ` Jacobo de Vera
0 siblings, 1 reply; 10+ messages in thread
From: Bastien @ 2013-01-08 17:33 UTC (permalink / raw)
To: Jacobo de Vera; +Cc: emacs-orgmode
Jacobo de Vera <devel@jacobodevera.com> writes:
> I just tested the fix, but what seems to be happening now is that C-c
> ' will jump to formula editing in all cases, when a table.el table is
> directly on the org buffer, when it is within an example block and
> when it is within a source block. I understood the fix would do the
> opposite, i.e., have C-c ' edit the table itself in all these three
> cases. Did I misunderstand or this still a bug?
Indeed, this is now fixed. Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 17:33 ` Bastien
@ 2013-01-08 18:59 ` Jacobo de Vera
2013-01-08 22:45 ` Bastien
0 siblings, 1 reply; 10+ messages in thread
From: Jacobo de Vera @ 2013-01-08 18:59 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]
On Tue, Jan 8, 2013 at 5:33 PM, Bastien <bzg@altern.org> wrote:
> Jacobo de Vera <devel@jacobodevera.com> writes:
>
> > I just tested the fix, but what seems to be happening now is that C-c
> > ' will jump to formula editing in all cases, when a table.el table is
> > directly on the org buffer, when it is within an example block and
> > when it is within a source block. I understood the fix would do the
> > opposite, i.e., have C-c ' edit the table itself in all these three
> > cases. Did I misunderstand or this still a bug?
>
> Indeed, this is now fixed. Thanks!
>
> --
> Bastien
>
Hi Bastien,
I just tested the second fix. It works as I was expecting it to work at
first, but only if the cursor is in one of the horizontal lines of a
table.el table when pressing C-c '. I can work with this just fine, but it
seems a bit confusing if one doesn't know, right?
I have also noticed that when coming back from the buffer where the table
is isolated (Using C-c ' on this buffer), the table gets indented in the
org file, but only the first time, then it stays there even when edited. Is
this expected?
Thanks for looking into this.
--
Jacobo de Vera
[-- Attachment #2: Type: text/html, Size: 1905 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 18:59 ` Jacobo de Vera
@ 2013-01-08 22:45 ` Bastien
2013-01-09 5:38 ` Jacobo de Vera
0 siblings, 1 reply; 10+ messages in thread
From: Bastien @ 2013-01-08 22:45 UTC (permalink / raw)
To: Jacobo de Vera; +Cc: emacs-orgmode
Hi Jacobo,
Jacobo de Vera <devel@jacobodevera.com> writes:
> I just tested the second fix. It works as I was expecting it to work
> at first, but only if the cursor is in one of the horizontal lines of
> a table.el table when pressing C-c '. I can work with this just fine,
> but it seems a bit confusing if one doesn't know, right?
Fixed, thanks.
> I have also noticed that when coming back from the buffer where the
> table is isolated (Using C-c ' on this buffer), the table gets
> indented in the org file, but only the first time, then it stays
> there even when edited. Is this expected?
Yes, I think so.
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Editing table.el tables in Org files
2013-01-08 22:45 ` Bastien
@ 2013-01-09 5:38 ` Jacobo de Vera
0 siblings, 0 replies; 10+ messages in thread
From: Jacobo de Vera @ 2013-01-09 5:38 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 571 bytes --]
On Tue, Jan 8, 2013 at 10:45 PM, Bastien <bzg@altern.org> wrote:
> Hi Jacobo,
>
> Jacobo de Vera <devel@jacobodevera.com> writes:
>
> > I just tested the second fix. It works as I was expecting it to work
> > at first, but only if the cursor is in one of the horizontal lines of
> > a table.el table when pressing C-c '. I can work with this just fine,
> > but it seems a bit confusing if one doesn't know, right?
>
> Fixed, thanks.
>
>
Hi Bastien,
I checked the last fix, everything seems to be working as expected now.
Thanks for the quick fixes.
--
Jacobo de Vera
[-- Attachment #2: Type: text/html, Size: 1121 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-01-09 5:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-08 11:57 Editing table.el tables in Org files Jacobo de Vera
2013-01-08 13:38 ` Bastien
2013-01-08 14:35 ` Jacobo de Vera
2013-01-08 14:57 ` Bastien
2013-01-08 15:15 ` Jacobo de Vera
2013-01-08 16:17 ` Jacobo de Vera
2013-01-08 17:33 ` Bastien
2013-01-08 18:59 ` Jacobo de Vera
2013-01-08 22:45 ` Bastien
2013-01-09 5:38 ` Jacobo de Vera
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).