From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Pluim Subject: Re: org-end-of-line and in table interaction Date: Fri, 28 Sep 2018 14:01:17 +0200 Message-ID: <87sh1tkf02.fsf@gmail.com> References: <87wor6j7gi.fsf@gmail.com> <87tvm9vrqy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5rbY-0001Tz-24 for emacs-orgmode@gnu.org; Fri, 28 Sep 2018 08:10:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5rSS-0001Db-Hz for emacs-orgmode@gnu.org; Fri, 28 Sep 2018 08:01:25 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:43101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5rSS-0001D7-Aa for emacs-orgmode@gnu.org; Fri, 28 Sep 2018 08:01:20 -0400 Received: by mail-wr1-x433.google.com with SMTP id z14-v6so6078838wrs.10 for ; Fri, 28 Sep 2018 05:01:20 -0700 (PDT) Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id k63-v6sm2997842wmd.46.2018.09.28.05.01.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Sep 2018 05:01:18 -0700 (PDT) In-Reply-To: <87tvm9vrqy.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 28 Sep 2018 12:30:29 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Robert Pluim writes: > >> I have >> >> (add-hook 'org-tab-first-hook 'org-end-of-line) >> >> This causes inside a table to always create another row, rather >> than moving to the next field. The patch below fixes this for me, >> although I=CA=BCm not sure it=CA=BCs 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