]> git.eshelyaron.com Git - emacs.git/commit
todo-mode.el: Fix handling of hidden item headers (bug#27609)
authorStephen Berman <stephen.berman@gmx.net>
Fri, 7 Jul 2017 15:48:14 +0000 (17:48 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Fri, 7 Jul 2017 15:48:14 +0000 (17:48 +0200)
commit264dd81d7bf14d39737677af11e1cd3d618ad887
tree5a07b1e5b3842787d7997d20c6abb4c967da8597
parent1cf6b1579976227346284033c3e333e53226a350
todo-mode.el: Fix handling of hidden item headers (bug#27609)

* lisp/calendar/todo-mode.el (todo--item-headers-hidden): New variable.
(todo-toggle-item-header): Use it.  Make this command a noop
if the file has no items.
(todo-move-item, todo-item-done): Instead of concatenating the
items to move into one string, make a list of them to
facilitate handling hidden headers.  Adjust insertion accordingly.
(todo-archive-done-item): Handle hidden headers in archive file.
(todo-unarchive-items): Handle hidden headers in todo file.
(todo-backward-item): Use todo--item-headers-hidden and handle
moving backward work when item date-time headers are hidden.
(todo-remove-item): Delete date-time header overlay.
(todo-get-overlay, todo-insert-with-overlays): Make them work
with hidden date-time headers.
(todo-modes-set-2): Make todo--item-headers-hidden buffer local.
lisp/calendar/todo-mode.el