From 0c9075f0af275e4a44cda363d61313c2667c5e7d Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 6 Aug 2019 00:10:37 +0300 Subject: [PATCH] * lisp/frameset.el (frameset--minibufferless-last-p): Fix pcase-let. This makes frameset sorting stable. (Bug#36894) --- lisp/frameset.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/frameset.el b/lisp/frameset.el index 73b2071a5a0..a8b16706c2d 100644 --- a/lisp/frameset.el +++ b/lisp/frameset.el @@ -1102,8 +1102,8 @@ Internal use only." "Predicate to sort frame states in an order suitable for creating frames. It sorts minibuffer-owning frames before minibufferless ones. Internal use only." - (pcase-let ((`(,hasmini1 ,id-def1) (assq 'frameset--mini (car state1))) - (`(,hasmini2 ,id-def2) (assq 'frameset--mini (car state2)))) + (pcase-let ((`(,hasmini1 . ,id-def1) (cdr (assq 'frameset--mini (car state1)))) + (`(,hasmini2 . ,id-def2) (cdr (assq 'frameset--mini (car state2))))) (cond ((eq id-def1 t) t) ((eq id-def2 t) nil) ((not (eq hasmini1 hasmini2)) (eq hasmini1 t)) -- 2.39.2