diff options
author | Stephen Berman <stephen.berman@gmx.net> | 2023-05-31 16:15:48 +0200 |
---|---|---|
committer | Stephen Berman <stephen.berman@gmx.net> | 2023-05-31 16:15:48 +0200 |
commit | 83b22139e4c2cf5ffb9544dd910319528ed7ebc8 (patch) | |
tree | 2e80249a0e185bbe579c83a8031b70eaa7e8365a /lisp/emacs-lisp/cursor-sensor.el | |
parent | ed4cd3eddf7763a70630df8fd238592e6f3b881c (diff) | |
download | emacs-83b22139e4c2cf5ffb9544dd910319528ed7ebc8.tar.gz emacs-83b22139e4c2cf5ffb9544dd910319528ed7ebc8.tar.bz2 emacs-83b22139e4c2cf5ffb9544dd910319528ed7ebc8.zip |
Fix several todo-mode.el item editing bugs (bug#63811)
* lisp/calendar/todo-mode.el (todo-insert-item--basic): With
insertion type 'here', ensure item is inserted on the todo-mode
line where the command was invoked.
(todo-edit-item--cat, todo-edit-item--pos): New variables.
(todo-edit-item--text): Restrict the scope of nil-valued
buffer-read-only to the functions that change buffer text. If
user moved point while editing a single-line todo item or a done
item comment, or while inserting a done item comment, restore
point, and for comments, make sure the done items section is
displayed. For multiline items, set the new variables so
todo-edit-quit can use them.
(todo-edit-quit): Use the values of the new variables to restore
point in the todo-mode buffer if it had been moved while editing.
(todo-edit-item--header): Avoid clobbering match data when editing
a todo item header.
Diffstat (limited to 'lisp/emacs-lisp/cursor-sensor.el')
0 files changed, 0 insertions, 0 deletions