diff options
| author | Stefan Monnier | 2023-11-16 00:16:31 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2023-11-16 00:16:31 -0500 |
| commit | dc61c0fd3ab1d8a869fd51998762467b09453091 (patch) | |
| tree | 47e617e5f9cdfaf64707da8738729a4c309ee000 /java | |
| parent | d03677343e9a54f76de7e3ac2db6e22df3fa4333 (diff) | |
| download | emacs-dc61c0fd3ab1d8a869fd51998762467b09453091.tar.gz emacs-dc61c0fd3ab1d8a869fd51998762467b09453091.zip | |
todo-mode.el: Don't let-bind `buffer-read-only`
Prefer let-binding `inhibit-read-only` so the code can freely change
`buffer-read-only`. While at it, prefer #' to quote function names.
* lisp/calendar/todo-mode.el (todo-rename-category)
(todo-delete-category, todo-delete-item)
(todo-edit-item--diary-inclusion, todo-edit-category-diary-inclusion)
(todo-edit-category-diary-nonmarking, todo-archive-done-item)
(todo-unarchive-items, todo-display-categories)
(todo-update-categories-display, todo-filter-items-1)
(todo-reset-nondiary-marker, todo-reset-done-separator-string)
(todo-reset-done-string, todo-reset-comment-string):
Bind `inhibit-read-only` instead of `buffer-read-only`.
(todo-mode, todo-archive-mode, todo-edit-mode, todo-categories-mode)
(todo-filtered-items-mode): Let `define-derived-mode` take care of
adding the keymap to the docstring.
(todo-mode, todo-archive-mode, todo-categories-mode)
(todo-filtered-items-mode): Let `define-derived-mode` set
`mode-class`.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions