Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Oct 16, 2024
1 parent 45a77c5 commit 40f3399
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
(require 'eieio)
(require 'edmacro)
(require 'format-spec)
(require 'pcase)

(eval-and-compile
(when (and (featurep 'seq)
Expand Down Expand Up @@ -85,6 +86,17 @@ similar defect.") :emergency))
(defvar Man-notify-method)
(defvar pp-default-function) ; since Emacs 29.1

(eval-and-compile
(message "-(1)------------------------------do")
(when (< emacs-major-version 28)
(message "-(2)------------------------------backport")
(pcase-defmacro cl-type (type)
"Pcase pattern that matches objects of TYPE.
TYPE is a type descriptor as accepted by `cl-typep', which see."
(static-if (< emacs-major-version 30)
`(pred (pcase--flip cl-typep ',type))
`(pred (cl-typep _ ',type))))))

(defmacro transient--with-emergency-exit (id &rest body)
(declare (indent defun))
(unless (keywordp id)
Expand Down

0 comments on commit 40f3399

Please sign in to comment.