* 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/)]
@ 2018-11-14 17:41 Emilio Francesquini
2018-11-16 20:46 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Emilio Francesquini @ 2018-11-14 17:41 UTC (permalink / raw)
To: emacs-orgmode
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
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".
The following numerical comparison fails in org-list-struct because itm-lst-s is nil:
(when (<= ind (nth 1 (car itm-lst-2)))
(push (cons ind (point)) end-lst-2))
I stumbled upon this because it essentially renders package
guess-language unsusable in most of my org files. Related bug: https://github.com/tmalsburg/guess-language.el/issues/20
Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
of 2018-09-11
Package: Org mode version 9.1.14 (9.1.14-1-g4931fc-elpaplus @ /home/emilio/.emacs.d/elpa/org-plus-contrib-20180910/)
^ permalink raw reply [flat|nested] 3+ messages in thread
* 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/)]
2018-11-14 17:41 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/)] Emilio Francesquini
@ 2018-11-16 20:46 ` Nicolas Goaziou
2018-11-22 19:00 ` Emilio Francesquini
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2018-11-16 20:46 UTC (permalink / raw)
To: Emilio Francesquini; +Cc: emacs-orgmode
Hello,
Emilio Francesquini <francesquini@gmail.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* 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/)]
2018-11-16 20:46 ` Nicolas Goaziou
@ 2018-11-22 19:00 ` Emilio Francesquini
0 siblings, 0 replies; 3+ messages in thread
From: Emilio Francesquini @ 2018-11-22 19:00 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 249 bytes --]
Hi Nicolas,
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.
>
I see! I'll give it a try!
Thanks!
[-- Attachment #2: Type: text/html, Size: 511 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-22 19:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-14 17:41 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/)] Emilio Francesquini
2018-11-16 20:46 ` Nicolas Goaziou
2018-11-22 19:00 ` Emilio Francesquini
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).