From: Po Lu Date: Wed, 19 Feb 2025 02:13:00 +0000 (+0800) Subject: Don't insist on the presence of a mouse in strokes-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=98e505e17ac443bf76edb1ea53b1abedd248af46;p=emacs.git 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) --- 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))