Merge from savannah/emacs-30

0e43606b20 * lisp/touch-screen.el (touch-screen-inhibit-drag): Fix t...
This commit is contained in:
Po Lu 2024-06-25 12:27:47 +08:00
commit feac6e298d

View file

@ -2065,7 +2065,7 @@ sent until the touch sequence currently being translated ends.
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)))
(current-what (nth 3 tool)))
;; Signal an error if no hold and no drag is in progress.
(when (and (not (eq current-what 'hold))
(not (eq current-what 'drag)))