* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix 'not' arity use.
This commit is contained in:
parent
923aad81d4
commit
a5a374014f
1 changed files with 3 additions and 3 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue