* lisp/emacs-lisp/pcase.el (pcase--split-pred): Re-fix bug#14773
Adjust to calling convention of `macroexp--fgrep`.
This commit is contained in:
parent
a0f60293d9
commit
d56b1f9e7c
2 changed files with 9 additions and 1 deletions
|
@ -661,7 +661,7 @@ A and B can be one of:
|
|||
;; run, but we don't have the environment in which `pat' will
|
||||
;; run, so we can't do a reliable verification. But let's try
|
||||
;; and catch at least the easy cases such as (bug#14773).
|
||||
(not (macroexp--fgrep (mapcar #'car vars) (cadr upat)))))
|
||||
(not (macroexp--fgrep vars (cadr upat)))))
|
||||
'(:pcase--succeed . :pcase--fail))
|
||||
;; In case PAT is of the form (pred (not PRED))
|
||||
((and (eq 'pred (car-safe pat)) (eq 'not (car-safe (cadr pat))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue