From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-mode - "Wrong type argument: number-or-marker-p, nil" [9.1.14 (9.1.14-1-g4931fc-elpaplus @ /home/emilio/.emacs.d/elpa/org-plus-contrib-20180910/)] Date: Fri, 16 Nov 2018 21:46:40 +0100 Message-ID: <87y39sg37z.fsf@nicolasgoaziou.fr> References: <87d0r7v9ox.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNl0v-0006Jc-JW for emacs-orgmode@gnu.org; Fri, 16 Nov 2018 15:46:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNl0s-0000vQ-DS for emacs-orgmode@gnu.org; Fri, 16 Nov 2018 15:46:53 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:46555) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gNl0q-0000td-Et for emacs-orgmode@gnu.org; Fri, 16 Nov 2018 15:46:50 -0500 In-Reply-To: <87d0r7v9ox.fsf@gmail.com> (Emilio Francesquini's message of "Wed, 14 Nov 2018 15:41:02 -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: Emilio Francesquini Cc: emacs-orgmode@gnu.org Hello, Emilio Francesquini writes: > Consider the following snippet of org > > - First item. I'm just writing something longer so that the minimum > number of characters is reached. > > Anywhere on the second line, calls to org-list-struct fail with the > error: "Wrong type argument: number-or-marker-p, nil". This is not a bug. The function `org-list-struct' has to be called on an item, not anywhere within an item. BTW, it is an internal function. You may want to use `org-element-at-point' instead. Regards, -- Nicolas Goaziou