;; Verify that the action is valid and pretend the drag succeeded
;; (by returning the action).
(cl-ecase action
- ('XdndActionCopy action)
- ('XdndActionMove action)
- ('XdndActionLink action)
+ (XdndActionCopy action)
+ (XdndActionMove action)
+ (XdndActionLink action)
;; These two are not technically valid, but x-begin-drag accepts
;; them anyway.
- ('XdndActionPrivate action)
- ('XdndActionAsk 'XdndActionPrivate))))
+ (XdndActionPrivate action)
+ (XdndActionAsk 'XdndActionPrivate))))
;; This doesn't work during tests.
(defalias 'gui-set-selection
(should (eq so-long--active t))
;; pcase fails here in Emacs 24.
(cl-case action
- ('so-long-mode
+ (so-long-mode
(should (eq major-mode 'so-long-mode))
(so-long-tests-assert-overrides)
(so-long-tests-assert-preserved))
- ('so-long-minor-mode
+ (so-long-minor-mode
(should (eq so-long-minor-mode t))
(so-long-tests-assert-overrides))
- ('longlines-mode
+ (longlines-mode
(should (eq longlines-mode t))))))
(defun so-long-tests-assert-reverted (action)
(should (eq so-long--active nil))
;; pcase fails here in Emacs 24.
(cl-case action
- ('so-long-mode
+ (so-long-mode
(should-not (eq major-mode 'so-long-mode))
(so-long-tests-assert-overrides-reverted)
(so-long-tests-assert-preserved))
- ('so-long-minor-mode
+ (so-long-minor-mode
(should-not (eq so-long-minor-mode t))
(so-long-tests-assert-overrides-reverted))
- ('longlines-mode
+ (longlines-mode
(should-not (eq longlines-mode t))))))
(defun so-long-tests-assert-and-revert (action)