[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-end-of-line and <TAB> in table interaction
From: |
Robert Pluim |
Subject: |
Re: [O] org-end-of-line and <TAB> in table interaction |
Date: |
Fri, 28 Sep 2018 14:01:17 +0200 |
Nicolas Goaziou <address@hidden> writes:
> Hello,
>
> Robert Pluim <address@hidden> 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