From mboxrd@z Thu Jan 1 00:00:00 1970 From: D Subject: Re: Strangely recognized non-lists and non-headers. Date: Sun, 2 Feb 2020 14:33:47 +0100 Message-ID: <35f99875-01df-22a7-4dee-6fe44b296858@posteo.net> References: <874kw9ci8u.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51350) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyFNs-0006Om-EB for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 08:33:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyFNq-0007uq-2E for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 08:33:55 -0500 Received: from mout02.posteo.de ([185.67.36.66]:60293) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iyFNo-0007rc-Np for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 08:33:53 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 65A812400FC for ; Sun, 2 Feb 2020 14:33:49 +0100 (CET) In-Reply-To: <874kw9ci8u.fsf@nicolasgoaziou.fr> Content-Language: en-US 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi, On 02.02.20 12:59, Nicolas Goaziou wrote: > Long story short. Don't use this function, it is not correctly > implemented at the moment. The correct way to check if you're in a list > is something like: > > (org-element-lineage (org-element-at-point) '(plain-list) t) I tried that out, but it still seems to recognize source code as headlines, replacing the predicate does not change the behavior. It seems to be something more deeply rooted than that, I mean, otherwise org mode wouldn't try to collapse those fake-headlines when hitting TAB, either. Regards, D.