Hello, Titus von der Malsburg <malsb...@posteo.de> 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