Hello, Consider the following simple org file:
* TODO keep this :keep: * TODO drop this :drop: After M-x org-todo-list, press "\ - drop RET" to filter out the "drop" tag. Now, pressing N multiple times results in an error on the last invocation and moves point to the end of the line. The expected behavior is to keep point on the last agenda item and not error. Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) org-agenda-next-item(1) funcall-interactively(org-agenda-next-item 1) command-execute(org-agenda-next-item) >From the debugger, I found that goto-char was being called with a nil argument because next-single-property-change returned nil and its results was passed directly to goto-char. Perhaps it just needs a check like org-agenda-previous-item has. Thanks, Aaron Emacs : GNU Emacs 31.1.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.4, Xaw scroll bars) Package: Org mode version 9.8.10 (release_9.8.10 @ /nix/store/s65zs8glwp167kmbvm7a5c25a67xna47-emacs-31.1/share/emacs/31.1.50/lisp/org/)
