* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix 'not' arity use.
authorAndrea Corallo <acorallo@gnu.org>
Mon, 17 Jun 2024 13:38:37 +0000 (15:38 +0200)
committerAndrea Corallo <acorallo@gnu.org>
Mon, 17 Jun 2024 13:42:24 +0000 (15:42 +0200)
lisp/touch-screen.el

index 9efbb59926eaafaa15b5a625b4a876767f051b68..792e1be5ff9992eab4b8b806094d1688ffdbb2b1 100644 (file)
@@ -2066,9 +2066,9 @@ Must be called from a command bound to a `touchscreen-hold' or
 `touchscreen-drag' event."
   (let* ((tool touch-screen-current-tool)
          (current-what (nth 4 tool)))
-    ;; Signal an error if no hold or drag is in progress.
-    (when (and (not (eq current-what 'hold)
-                    (eq current-what 'drag)))
+    ;; Signal an error if no hold and no drag is in progress.
+    (when (and (not (eq current-what 'hold))
+               (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'.
     (setcar (nthcdr 3 tool) 'command-inhibit)))