emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Bug: org-in-item-p indicates point is in list when it isn't


From: Nicolas Goaziou
Subject: Re: [O] Bug: Bug: org-in-item-p indicates point is in list when it isn't [8.3.3 (release_8.3.3-529-gfed40e @ /home/malsburg/usr/share/emacs/site-lisp/org/)] [9.0.5 (9.0.5-elpa @ /home/malsburg/.emacs.d/elpa/org-20170210/)]
Date: Sun, 21 May 2017 14:57:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Titus von der Malsburg <address@hidden> writes:

> In the example below, when I place the cursor on “Item 2” and then do
> (org-end-of-item-list), the cursor is correctly placed at the beginning
> of line 4.  However, when I then say (org-in-item-p), I get something
> non-nil.  When I move the cursor to the beginning of line 5, I still get
> non-nil for (org-in-item-p).  The expected result is nil on line 4 and
> 5.  If (org-in-item-p) gives non-nil, (org-end-of-item-list) has
> obviously not moved us to the end of the list.  I think
> (org-end-of-item-list) is doing the right thing but (org-in-item-p)
> doesn’t.

I don't see any bug. Blank lines after a plain list still belong to the
plain list, so `org-in-item-p' is correct.

Indeed, `org-end-of-item-list' moves to the end of the last item instead
of the very end of the list, but I consider it to be a feature, e.g.,
when you need to exchange two items in the list.

You may want to explain what is bothering you in this results. Also,
I suggest to use `org-element-at-point' instead.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]