From 4873990a706339cb47e0ec6a2954d2b2e8041b69 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 30 Sep 2021 18:23:15 -0500 Subject: Fix bug in acdw-reading.el --- lisp/acdw-reading.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/acdw-reading.el b/lisp/acdw-reading.el index 5d43dac..e3d5716 100644 --- a/lisp/acdw-reading.el +++ b/lisp/acdw-reading.el @@ -39,14 +39,16 @@ (when (fboundp mode) (set (make-local-variable (intern (format "//%s" mode))) - (symbol-value mode)) + (and (boundp mode) + (symbol-value mode))) (funcall mode -1))) ;; enable modes (dolist (mode '(olivetti-mode)) (when (fboundp mode) (set (make-local-variable (intern (format "//%s" mode))) - (symbol-value mode)) + (and (boundp mode) + (symbol-value mode))) (funcall mode +1)))) ;; turn off ;; restore settings -- cgit 1.4.1-21-gabe81