From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Strangely recognized non-lists and non-headers. Date: Sun, 02 Feb 2020 12:59:29 +0100 Message-ID: <874kw9ci8u.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60946) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyDuh-00068F-Uc for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 06:59:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyDug-0001nV-M6 for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 06:59:43 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:44181) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iyDug-0001lE-GM for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 06:59:42 -0500 In-Reply-To: (D.'s message of "Sun, 2 Feb 2020 11:11:02 +0100") 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: D Cc: emacs-orgmode@gnu.org Hello, D writes: > I use org-list-in-valid-context-p as a quick hack to check if what I am > looking at is actually a list. 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) Regards, -- Nicolas Goaziou