ui/popup: use old alist use-case for set-popup-rule!
This paradigm has been long since abandoned.
This commit is contained in:
parent
b3a0fb9fc7
commit
74cad2632b
1 changed files with 21 additions and 32 deletions
|
@ -15,20 +15,9 @@
|
|||
|
||||
;;;###autoload
|
||||
(defun +popup--make (predicate plist)
|
||||
(cond ((and plist (not (keywordp (car plist))))
|
||||
;; FIXME deprecated popup rule support
|
||||
(message "Warning: the old usage of `set-popup-rule!' is deprecated; update the rule for '%s'"
|
||||
predicate)
|
||||
(cl-destructuring-bind (condition &optional alist parameters)
|
||||
(list predicate (car plist) (cadr plist))
|
||||
(if (eq alist :ignore)
|
||||
(list condition nil)
|
||||
`(,condition (+popup-buffer)
|
||||
,@alist
|
||||
(window-parameters ,@parameters)))))
|
||||
((plist-get plist :ignore)
|
||||
(list predicate nil))
|
||||
((let* ((plist (append plist +popup-defaults))
|
||||
(if (plist-get plist :ignore)
|
||||
(list predicate nil)
|
||||
(let* ((plist (append plist +popup-defaults))
|
||||
(alist
|
||||
`((actions . ,(plist-get plist :actions))
|
||||
(side . ,(plist-get plist :side))
|
||||
|
@ -46,7 +35,7 @@
|
|||
,@(plist-get plist :parameters))))
|
||||
`(,predicate (+popup-buffer)
|
||||
,@alist
|
||||
(window-parameters ,@params))))))
|
||||
(window-parameters ,@params)))))
|
||||
|
||||
;;;###autodef
|
||||
(defun set-popup-rule! (predicate &rest plist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue