;; Add any tail info.
(setq msg (concat msg msg-tail))
;; Display tooltip.
- (when (not (equal msg ""))
+ (when (not (eq msg ""))
(semantic-displayer-tooltip-show msg)))))
;;; Compatibility
;; description is added to the category name as a tooltip
(defsubst describe-char-categories (category-set)
(let ((mnemonics (category-set-mnemonics category-set)))
- (unless (equal mnemonics "")
+ (unless (eq mnemonics "")
(list (mapconcat
(lambda (x)
(let* ((c (category-docstring x))
viper-delete-backward-char
viper-join-lines
viper-delete-char))
- (member (viper-event-key last-command-event)
- '(up down left right (meta f) (meta b)
- (control n) (control p) (control f) (control b)))))
+ (memq (viper-event-key last-command-event)
+ '(up down left right (meta f) (meta b)
+ (control n) (control p) (control f) (control b)))))
(defsubst viper-insert-state-pre-command-sentinel ()
(or (viper-preserve-cursor-color)
(cons '("None")
(mapcar #'list (mapcar #'car mh-identity-list)))
nil t default nil default))
- (if (equal identity "None")
+ (if (eq identity "None")
nil
identity)))
(unless abort-only
(setq post-command
(lambda () "@transient--delay-post-command"
- (let ((act (and (not (equal (this-command-keys-vector) []))
+ (let ((act (and (not (eq (this-command-keys-vector) []))
(or (eq this-command command)
;; `execute-extended-command' was
;; used to call another command
(transient--debug 'post-command)
(transient--with-emergency-exit
(cond
- ((and (equal (this-command-keys-vector) [])
+ ((and (eq (this-command-keys-vector) [])
(= (minibuffer-depth)
(1+ transient--minibuffer-depth)))
(transient--suspend-override)
(if branchp "branch" "tag"))))
(if branchp
(vc-git-command nil 0 nil "checkout" "-b" name
- (when (and start-point
- (not (equal start-point "")))
+ (when (and start-point (not (eq start-point "")))
start-point))
(vc-git-command nil 0 nil "tag" name)))))
(ert-deftest cl-lib-nth-value-test-multiple-values ()
"While CL multiple values are an alias to list, these won't work."
:expected-result :failed
- (should (equal (cl-nth-value 0 '(2 3)) '(2 3)))
+ (should (eq (cl-nth-value 0 '(2 3)) '(2 3)))
(should (= (cl-nth-value 0 1) 1))
(should (null (cl-nth-value 1 1)))
(should-error (cl-nth-value -1 (cl-values 2 3)) :type 'args-out-of-range)