* 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)
committerPo Lu <luangruo@yahoo.com>
Tue, 25 Jun 2024 04:52:56 +0000 (12:52 +0800)
lisp/touch-screen.el

index aa4bded897541c5630c17f7edc61a6f5c772b553..c5918efb8007b147207106f29c12ee4d275fed9f 100644 (file)
@@ -2067,7 +2067,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'.