]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't insist on the presence of a mouse in strokes-mode
authorPo Lu <luangruo@yahoo.com>
Wed, 19 Feb 2025 02:13:00 +0000 (10:13 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 20 Feb 2025 21:42:42 +0000 (22:42 +0100)
* 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

index e7aa7b9d04b54bafd3ff31bca156a6c705d3649f..b3fe4dcf4d012b30961e10ba87c3a5c970565324 100644 (file)
@@ -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))