Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Robert Pluim <rpl...@gmail.com> writes: > >> I have >> >> (add-hook 'org-tab-first-hook 'org-end-of-line) >> >> This causes <TAB> inside a table to always create another row, rather >> than moving to the next field. The patch below fixes this for me, >> although Iʼm not sure itʼs the right solution. > > Why would you want to patch Org source instead of fixing the function > you attach to the hook?
Yes, I could wrap org-end-of-line in a (when (not (org-at-table-p))), but that would fix it only for me. I was under the impression that 'org-end-of-line' is intended to do something only when in a heading, since it does: (looking-at org-complex-heading-regexp))) hence my patch to make it not do anything in tables. Robert