unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Small frameset bug
@ 2020-02-03 14:55 JD Smith
  2020-02-03 15:13 ` Robert Pluim
  0 siblings, 1 reply; 3+ messages in thread
From: JD Smith @ 2020-02-03 14:55 UTC (permalink / raw)
  To: emacs-devel; +Cc: lekktu


In `frameset--minibufferless-last-p`, the destructuring statements:

(pcase-let ((`(,hasmini1 ,id-def1) (assq 'frameset--mini (car state1)))
	      (`(,hasmini2 ,id-def2) (assq 'frameset--mini (car state2))))

do not function as intended.  Since the `assq` always produces ‘frameset—mini` as its car, hasmini1/2 are always set to this symbol. The subsequent `cond` still works as intended to sort minibufferless frames last:

    (cond ((eq id-def1 t) t)
	  ((eq id-def2 t) nil)
	  ((not (eq hasmini1 hasmini2)) (eq hasmini1 t))
	  ((eq hasmini1 nil) (or id-def1 id-def2))
	  (t t))))

but the 3rd and 4th conditions are never met.  This may cause confusion for anyone trying to use the ‘frameset—mini frame parameter.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-03 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-03 14:55 Small frameset bug JD Smith
2020-02-03 15:13 ` Robert Pluim
2020-02-03 15:21   ` JD Smith

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).