Hi to all.

If in an org buffer there is a table, commented or not, starting from
the first line of the buffer, the command orgtbl-toggle-comment hangs
and must be terminated with C-g.

Step to reproduce:

1) create an org buffer with the following content starting from line 1:
| table |
|       |
2) move the point in the table
3) execute M-x orgtbl-toggle-comment

Expected outcome:

the table gets commented like this
# | table |
# |       |

Actual outcome:

Emacs hangs, C-g make it responde again, but the table does not change.

Emacs  : GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, 
cairo version 1.16.0)
 of 2022-04-09
Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ 
/usr/local/share/emacs/28.1/lisp/org/)


Thanks
Matteo

Reply via email to