]> git.eshelyaron.com Git - emacs.git/commit
Fix and improve setting priority of todo-mode items (bug#64433)
authorStephen Berman <stephen.berman@gmx.net>
Mon, 3 Jul 2023 12:19:41 +0000 (14:19 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Mon, 3 Jul 2023 12:19:41 +0000 (14:19 +0200)
commit14ae2101412d66576846d30ab32b4d5b0081383d
treeb0ca89458aed1e26a30c963e46938f6dfbb62c69
parent3ac4b2de77b49688f977158907bcb40946b713db
Fix and improve setting priority of todo-mode items (bug#64433)

* lisp/calendar/todo-mode.el (todo-set-item-priority): Bugfixes:
Prevent interactively setting item priority to its current
priority in the same category and prompt user for a different
priority (but allow using the same priority when item is moved to
another category).  Ensure that the priority passed as a prefix
argument is suitable: if it is not an integer between 1 and the
highest item number, signal a user error.  New feature: Use the
sequence of numbers of the category's items as the minibuffer
history.

* doc/misc/todo-mode.texi (Inserting New Items):
(Reprioritizing Items): Document using the minibuffer history.

* test/lisp/calendar/todo-mode-tests.el
(todo-test-item-insertion-with-priority-1)
(todo-test-item-insertion-with-priority-2)
(todo-test-item-insertion-with-priority-3): New tests.
doc/misc/todo-mode.texi
lisp/calendar/todo-mode.el
test/lisp/calendar/todo-mode-tests.el