From 98e505e17ac443bf76edb1ea53b1abedd248af46 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 19 Feb 2025 10:13:00 +0800 Subject: [PATCH] Don't insist on the presence of a mouse in strokes-mode * lisp/strokes.el (strokes-mode): Don't test `display-mouse-p', as the presence of a mouse may vary over the course of an Emacs session. (cherry picked from commit d05894f82d90c6d739aa3d424651fda2c86f68ec) --- lisp/strokes.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/strokes.el b/lisp/strokes.el index e7aa7b9d04b..b3fe4dcf4d0 100644 --- a/lisp/strokes.el +++ b/lisp/strokes.el @@ -1381,9 +1381,7 @@ Encode/decode your strokes with \\[strokes-encode-buffer], \\{strokes-mode-map}" :lighter strokes-lighter :global t - (cond ((not (display-mouse-p)) - (error "Can't use Strokes without a mouse")) - (strokes-mode ; turn on strokes + (cond (strokes-mode ; turn on strokes (and (file-exists-p strokes-file) (null strokes-global-map) (strokes-load-user-strokes)) -- 2.39.5