last day (58 days later) » 

04:48
This started as a comment discussion on the following question: emacs.stackexchange.com/questions/81455/…
@NickD: To be clear
1. My second code example in a .py file
2. start orgtbl-mode -- modeline shows python and orgtbl
3. Delete fully the first line (C-k C-k) ie. the ORGTBL line should be line 1
3a. [If youre following from the 11 year old code on the python mailing list youve to delete 2 lines because theres a blank line there]. In any case the #+ORGTBL should be line 1
4. Now somewhere in the table give C-c C-c

emacs hangs ie the cursor stops blinking; when I bring the mouse inside emacs it becomes a spinning wheel; until C-g
05:21
Yes - there is an infinite loop in orgtbl-gather-send-defs. Not sure why that does not happen in the case I tried, but it's late for me, so I'll trace it in the morning. On second thought, it happens because (forward-line -1) at the beginning of the buffer is a no-op. That's why when you have a line above it, it does not happen. It should be easy to fix, but it's a rather unlikely scenario.
05:36
See a modified orgtbl-gather-send-defs here: pastebin.com/NYC6NspS - that seems to work in your case, but I haven't tried it in my case (but it should work there too - famous last words...)
05:55
@Rusi: I forgot to ping you.
06:45
@Rusi: I think it's buggy in other ways as well - I haven't checked the syntax, but if there is an empty line between the start of the table and the #+ORGTBL line, nothing happens with C-c C-c - but it's really late now and I need to get some sleep.
 
2 hours later…
08:56
@NickD I made a bug report "orgtbl hangs emacs"
pastebin doesnt work
I thought there was some major release coming out. So hurried
But I see its out a week back
 
6 hours later…
14:30
Yeah, it's not a major problem and it has an easy workaround, so there is no hurry. There have been three bug-fix releases already since 9.7 was announced with 21 commits and there are already another 30 commits that have not been released yet: Org mode is a very active project. It's more important to fix it correctly than to fix it fast. Thanks for submitting the report.
@Rusi: ^^
 
5 hours later…
19:52
@Rusi: so I played around with ORGTBL SEND and I think I understand a little better now. First, although it's not mentioned in the docs, there can be NO lines (empty or otherwise) between the #+ORGTBL line and the start of the table. Otherwise, orgtbl-ctrl-c-ctril-c passes the C-c C-c through without acting on it, so it invokes whatever command is bound to C-c C-c in that buffer without orgtbl. Second, there can be multiple #+ORGTBL SEND lines above the table ...
That's why the while loop is there. OTOH, you can only C-c C-c on the last one (the one that's just before the table - or on the table itself): doing so on the others again passes the C-c C-c through. So the fix I pastebinned is enough (modulo the fact that you say it does not work for you)
 
2 hours later…
22:10
@NickD pastebin is banned ...or somethin'
 
2 hours later…
23:56
@Rusi: I sent you the modified version of `orgtbl-gather-send-defs' in gmail. Let me know if you encounter problems.

last day (58 days later) »