aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--emacs.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs.el b/emacs.el
index e13833b..7deabba 100644
--- a/emacs.el
+++ b/emacs.el
@@ -405,6 +405,14 @@
;; Custom org-dblock for weekly time tracking
(require 'cl-lib)
+;; QUIRK (Org 9.8 / Emacs 31): while (require 'org-clock) evaluates its
+;; defcustoms, the :set of org-clock-ask-before-exiting adds
+;; org-clock-kill-emacs-query to kill-emacs-query-functions ~2800 lines
+;; BEFORE the defun that defines it. Quitting inside that window
+;; (e.g. C-x C-c during startup) hits a void-function error. Pre-define
+;; a permissive stub; Org's real definition replaces it once loaded.
+(unless (fboundp 'org-clock-kill-emacs-query)
+ (defun org-clock-kill-emacs-query () t))
(require 'org-clock)
(defun org-dblock-write:weekly (params)