]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/touch-screen.el (touch-screen-inhibit-drag): Another typo.
authorPo Lu <luangruo@yahoo.com>
Tue, 25 Jun 2024 04:52:23 +0000 (12:52 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Jun 2024 13:34:04 +0000 (15:34 +0200)
(cherry picked from commit 60b38c317bbd8e6020442a5c0efe504a22eaa092)

lisp/touch-screen.el

index ddae698ba1ec7e5c65c9191aea09c0381df64e51..5186a830c4408156abb6c5a44a450b1e63d39f19 100644 (file)
@@ -2066,7 +2066,7 @@ Must be called from a command bound to a `touchscreen-hold' or
   (let* ((tool touch-screen-current-tool)
          (current-what (nth 3 tool)))
     ;; Signal an error if no hold and no drag is in progress.
-    (when (and (not (eq current-what 'hold))
+    (when (and (not (eq current-what 'held))
                (not (eq current-what 'drag)))
       (error "Calling `touch-screen-inhibit-drag' outside hold or drag"))
     ;; Now set the fourth element of tool to `command-inhibit'.