emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
@ 2022-10-25 11:50 ELECTRUM BIKES
  2022-10-27  3:36 ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: ELECTRUM BIKES @ 2022-10-25 11:50 UTC (permalink / raw)
  To: emacs-orgmode



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report? See

      https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Hi. Tables created in org-mode by inserting manually | works fine, but
if I use table-insert I can't manipulate table, I get "use C-c `"
notification in minibuffer when I click <tab> to move to next cell. If I
click C-c `, I get "not a table" response. In such tables I can only insert
text but not use shortcuts and they're generally broken. I tried it on
emacs -q and it looks it's not my configuration fault, same behavior.
Also, there seems to be problem with handling top and bottom borders, if 
I insert
(for example, 3 column table) +-+-+ at the top or bottom of a working table,
it breaks to exactly same state as command-inserted tables, so probably
top and bottom border handling breaks tables (command created tables
does have this borders).

Emacs  : GNU Emacs 28.1 (build 52, x86_64-w64-mingw32)
  of 2022-04-04
Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program 
Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)



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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-25 11:50 [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)] ELECTRUM BIKES
@ 2022-10-27  3:36 ` Ihor Radchenko
  2022-10-27 14:42   ` Mati
  0 siblings, 1 reply; 11+ messages in thread
From: Ihor Radchenko @ 2022-10-27  3:36 UTC (permalink / raw)
  To: ELECTRUM BIKES; +Cc: emacs-orgmode

ELECTRUM BIKES <mati@electrum-bikes.pl> writes:

> Hi. Tables created in org-mode by inserting manually | works fine, but
> if I use table-insert I can't manipulate table, I get "use C-c `"
> notification in minibuffer when I click <tab> to move to next cell.

"C-c '", not C-c `.

> If I click C-c `, I get "not a table" response. In such tables I can
> only insert text but not use shortcuts and they're generally broken. I
> tried it on emacs -q and it looks it's not my configuration fault,
> same behavior.

Please provide more details on what you have tried.

I tried


    +--------------+------+--------------------------------+
    |              |      |                                |
    |              |      |                                |
    +--------------+------+--------------------------------+
    |              |      |Text editing inside the table   |
    |              |      |cell produces reasonably        |
    |              |      |expected results.-!-            |
    +--------------+------+--------------------------------+
    |              |      |                                |
    |              |      |                                |
    +--------------+------+--------------------------------+

with point at the top left cell, after C-c ', I can <TAB> across cells
in the edit buffer.

> Also, there seems to be problem with handling top and bottom borders,
> if I insert
> (for example, 3 column table) +-+-+ at the top or bottom of a working table,
> it breaks to exactly same state as command-inserted tables, so probably
> top and bottom border handling breaks tables (command created tables
> does have this borders).

Sorry, I do not understand what you are referring two. Detailed steps
explaining what text you inserted and what key bindings you pressed
would help a lot.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-27  3:36 ` Ihor Radchenko
@ 2022-10-27 14:42   ` Mati
  2022-10-28  4:13     ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Mati @ 2022-10-27 14:42 UTC (permalink / raw)
  To: emacs-orgmode

> Please provide more details on what you have tried.
M-x table-insert 5 columns 5 rows 15 cell width 1 height

Then enter something in first cell. press tab to go to next cell, but 
then message appears with C-c ’ (copy-pasted it from messages buffer) 
shortcut. I can edit table after pressing C-c ', in orgsrc mode, with 
very limited functionality and it just doesn't work well, table doesn't 
shrink after deleting text etc.

Also, I noticed that horizontal table lines (|-----+-----|) are not 
properly recognized too and instead of inserting new cells below line, 
they are inserted above when moving by <tab>. The funny part is that 
this works in emacs with my configuration loaded (valign-mode and 
variable pitch font might matter) so it works well when it could be 
expected to break, and is broken in pure emacs (but only horizontal 
lines, top and bottom border still breaks table even with valign). Of 
course with emacs -q I test on monospace font.

> with point at the top left cell, after C-c ', I can <TAB> across cells
> in the edit buffer.
Yes, in orgsrc mode (after clicking this shortcut, C-c ') it's possible, 
but it should work in org, also as I previously mentioned, orgsrc table 
editing is limited and doesn't work properly.

On 27.10.2022 05:36, Ihor Radchenko wrote:
> ELECTRUM BIKES <mati@electrum-bikes.pl> writes:
>
>> Hi. Tables created in org-mode by inserting manually | works fine, but
>> if I use table-insert I can't manipulate table, I get "use C-c `"
>> notification in minibuffer when I click <tab> to move to next cell.
> "C-c '", not C-c `.
>
>> If I click C-c `, I get "not a table" response. In such tables I can
>> only insert text but not use shortcuts and they're generally broken. I
>> tried it on emacs -q and it looks it's not my configuration fault,
>> same behavior.
> Please provide more details on what you have tried.
>
> I tried
>
>
>      +--------------+------+--------------------------------+
>      |              |      |                                |
>      |              |      |                                |
>      +--------------+------+--------------------------------+
>      |              |      |Text editing inside the table   |
>      |              |      |cell produces reasonably        |
>      |              |      |expected results.-!-            |
>      +--------------+------+--------------------------------+
>      |              |      |                                |
>      |              |      |                                |
>      +--------------+------+--------------------------------+
>
> with point at the top left cell, after C-c ', I can <TAB> across cells
> in the edit buffer.
>
>> Also, there seems to be problem with handling top and bottom borders,
>> if I insert
>> (for example, 3 column table) +-+-+ at the top or bottom of a working table,
>> it breaks to exactly same state as command-inserted tables, so probably
>> top and bottom border handling breaks tables (command created tables
>> does have this borders).
> Sorry, I do not understand what you are referring two. Detailed steps
> explaining what text you inserted and what key bindings you pressed
> would help a lot.
>


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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-27 14:42   ` Mati
@ 2022-10-28  4:13     ` Ihor Radchenko
  2022-10-30  7:42       ` Mati
  0 siblings, 1 reply; 11+ messages in thread
From: Ihor Radchenko @ 2022-10-28  4:13 UTC (permalink / raw)
  To: Mati; +Cc: emacs-orgmode

Mati <mati@electrum-bikes.pl> writes:

>> with point at the top left cell, after C-c ', I can <TAB> across cells
>> in the edit buffer.
> Yes, in orgsrc mode (after clicking this shortcut, C-c ') it's possible, 
> but it should work in org, also as I previously mentioned, orgsrc table 
> editing is limited and doesn't work properly.

Note the table-insert is not an Org command. It inserts table.el-style
tables. Their support in Org is limited. They are _not_ native Org
tables. See https://orgmode.org/manual/Cooperation.html
That's why you need to use C-c ' and then work as you would via table.el
commands.

The proper Org tables can be created using M-x org-table-create. See
https://orgmode.org/manual/Tables.html.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-28  4:13     ` Ihor Radchenko
@ 2022-10-30  7:42       ` Mati
  2022-10-30  7:47         ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Mati @ 2022-10-30  7:42 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 996 bytes --]

I saw a similar topic created about hlines. So, it would be rather a 
feature request to add hlines rather than bug. Here is fragment of 
conversation I am talking about for reference:

>> /I start with /
>>
>>
>>
>> /| Example | Text | Dates | other |/
>> /|---------+---------+--------------+---------|/
>> /| this | comment | <2022-01-28 vie> | nothing |/
>>
>>
>> /That is converted to /
>>
>>
>>
>> /+---------+---------+--------------+---------+/
>> /| Example | Text | Dates | other |/
>> /+---------+---------+--------------+---------+/
>> /| this | comment | <2022-01-28 vie> | nothing |/
>> /+---------+---------+--------------+---------+/
>>
>>
>> /And is converted back to /
>>
>>
>> /| Example | Text | Dates | other |/
>> /| this | comment | <2022-01-28 vie> | nothing |/
>>
>>
>> /Couldn't in the last step the hlines be respected?/
> That would not make sense.
> AFAIK, table.el has no notion of hlines. The +---+ separators in
> table.el tables mark cell boundaries, not hlines.

[-- Attachment #2: Type: text/html, Size: 1347 bytes --]

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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-30  7:42       ` Mati
@ 2022-10-30  7:47         ` Ihor Radchenko
  2022-10-30  7:58           ` Mati
  0 siblings, 1 reply; 11+ messages in thread
From: Ihor Radchenko @ 2022-10-30  7:47 UTC (permalink / raw)
  To: Mati; +Cc: emacs-orgmode

Mati <mati@electrum-bikes.pl> writes:

> I saw a similar topic created about hlines. So, it would be rather a 
> feature request to add hlines rather than bug. Here is fragment of 
> conversation I am talking about for reference:

I am sorry, but I don't understand.
In the reply to the linked conversation I explained that table.el tables
do not have any notion of hlines.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-30  7:47         ` Ihor Radchenko
@ 2022-10-30  7:58           ` Mati
  2022-10-30  8:07             ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Mati @ 2022-10-30  7:58 UTC (permalink / raw)
  To: emacs-orgmode

So, you mean that those aren't hlines but cell boundaries? Simplifying, 
I think the problem is lack of table top and bottom border support, no 
matter how it will be created.

On 30.10.2022 08:47, Ihor Radchenko wrote:
> I am sorry, but I don't understand.
> In the reply to the linked conversation I explained that table.el tables
> do not have any notion of hlines.


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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-30  7:58           ` Mati
@ 2022-10-30  8:07             ` Ihor Radchenko
  2022-10-30  8:11               ` Mati
  0 siblings, 1 reply; 11+ messages in thread
From: Ihor Radchenko @ 2022-10-30  8:07 UTC (permalink / raw)
  To: Mati; +Cc: emacs-orgmode

Mati <mati@electrum-bikes.pl> writes:

> So, you mean that those aren't hlines but cell boundaries?

Yes.

> Simplifying, 
> I think the problem is lack of table top and bottom border support, no 
> matter how it will be created.

Could you please provide a concrete example on what you want to achieve?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-30  8:07             ` Ihor Radchenko
@ 2022-10-30  8:11               ` Mati
  2022-10-30  8:55                 ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Mati @ 2022-10-30  8:11 UTC (permalink / raw)
  To: emacs-orgmode

> Could you please provide a concrete example on what you want to achieve?

+-----+-----+ at top and bottom of table creates top and bottom border 
and doesn't break table.



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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
  2022-10-30  8:11               ` Mati
@ 2022-10-30  8:55                 ` Ihor Radchenko
       [not found]                   ` <a88fe7e0-2374-bf4d-bab1-c897a15893d4@electrum-bikes.pl>
  0 siblings, 1 reply; 11+ messages in thread
From: Ihor Radchenko @ 2022-10-30  8:55 UTC (permalink / raw)
  To: Mati; +Cc: emacs-orgmode

Mati <mati@electrum-bikes.pl> writes:

>> Could you please provide a concrete example on what you want to achieve?
>
> +-----+-----+ at top and bottom of table creates top and bottom border 
> and doesn't break table.

Org export for table.el tables relies on export capabilities of
table.el. We may hack into the export to add border (say, according to
#+ATTR_HTML attribute), but it will be fragile wrt changes in table.el
export.

So, I do not think that it is a good idea to add such kind of feature to
Org. table.el support is limited as long is it is not a part of actual
Org syntax and not supported fully in org-table.el.

In terms of Org development, we should probably focus more on improving
built-in tables, as discussed in
https://orgmode.org/list/878rkyarvm.fsf@localhost

On personal level, you may use org-export-filter-table-functions to add
the borders as needed.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)]
       [not found]                     ` <87v8o1oexx.fsf@localhost>
@ 2022-10-30  9:35                       ` Mati
  0 siblings, 0 replies; 11+ messages in thread
From: Mati @ 2022-10-30  9:35 UTC (permalink / raw)
  To: emacs-orgmode


> Try
>
> |------+----+------|
> | this | is | test |
> |    1 |  2 |    3 |
> |------+----+------|
Works, but I must somehow hack it to look normally with valign then. Thanks.


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

end of thread, other threads:[~2022-10-30  9:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 11:50 [BUG] cant normally edit tables created with table-insert [9.5.2 (release_9.5.2-25-gaf6f12 @ c:/Program Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/org/)] ELECTRUM BIKES
2022-10-27  3:36 ` Ihor Radchenko
2022-10-27 14:42   ` Mati
2022-10-28  4:13     ` Ihor Radchenko
2022-10-30  7:42       ` Mati
2022-10-30  7:47         ` Ihor Radchenko
2022-10-30  7:58           ` Mati
2022-10-30  8:07             ` Ihor Radchenko
2022-10-30  8:11               ` Mati
2022-10-30  8:55                 ` Ihor Radchenko
     [not found]                   ` <a88fe7e0-2374-bf4d-bab1-c897a15893d4@electrum-bikes.pl>
     [not found]                     ` <87v8o1oexx.fsf@localhost>
2022-10-30  9:35                       ` Mati

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