summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fisher <Michael_Fisher@URMC.Rochester.edu>2022-09-27 11:38:57 -0400
committerBastien Guerry <bzg@gnu.org>2022-09-27 18:01:53 +0200
commit6422b265f1150204f024e33d54f2dcfd8323005c (patch)
tree2f2dfa8d70490fcbed502739a6574b70c0710d8a
parent7f32f80f9589f7cbf944135e4f3cd5c690eb5db2 (diff)
fix(org-checklist.el): change org-make-checklist-export (Emacs 28+ cl)
In more recent Emacs, cl functions (like "case") must be prefixed with "cl-". Add this and re-order choices (t must be the last choice now).
-rw-r--r--lisp/org-checklist.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org-checklist.el b/lisp/org-checklist.el
index b813c88..26b78cf 100644
--- a/lisp/org-checklist.el
+++ b/lisp/org-checklist.el
@@ -93,10 +93,10 @@ of checkbox items"
"-" (format-time-string
org-checklist-export-time-format)
".org"))
- (print (case (org-entry-get (point) "PRINT_EXPORT" nil)
+ (print (cl-case (org-entry-get (point) "PRINT_EXPORT" nil)
(("" "nil" nil) nil)
- (t t)
- (nil (y-or-n-p "Print list? "))))
+ (nil (y-or-n-p "Print list? "))
+ (t t)))
exported-lines
(title "Checklist export"))
(save-restriction