unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35272: [PATCH] * lisp/frame.el (frame--size-history): Fix infloop.
@ 2019-04-14 15:37 Alex Gramiak
  2019-04-14 16:04 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Gramiak @ 2019-04-14 15:37 UTC (permalink / raw)
  To: 35272

[-- Attachment #1: Type: text/plain, Size: 62 bytes --]

frame-size-history can be nil, which resulted in an infloop.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: infloop --]
[-- Type: text/x-patch, Size: 820 bytes --]

From 5695525ed1477e908536d159da670f0f1ab4a369 Mon Sep 17 00:00:00 2001
From: Alexander Gramiak <agrambot@gmail.com>
Date: Sun, 14 Apr 2019 09:27:50 -0600
Subject: [PATCH] * lisp/frame.el (frame--size-history): Fix infloop.

---
 lisp/frame.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/frame.el b/lisp/frame.el
index b5c936a51e..6f9e769e16 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1610,7 +1610,7 @@ frame--size-history
     (with-current-buffer (get-buffer-create "*frame-size-history*")
       (erase-buffer)
       (insert (format "Frame size history of %s\n" frame))
-      (while (listp (setq entry (pop history)))
+      (while (consp (setq entry (pop history)))
 	(when (eq (car entry) frame)
           (pop entry)
           (insert (format "%s" (pop entry)))
-- 
2.21.0


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

end of thread, other threads:[~2019-04-14 18:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-14 15:37 bug#35272: [PATCH] * lisp/frame.el (frame--size-history): Fix infloop Alex Gramiak
2019-04-14 16:04 ` Eli Zaretskii
2019-04-14 16:25   ` Alex Gramiak
2019-04-14 16:33     ` Basil L. Contovounesios
2019-04-14 17:43       ` Alex Gramiak
2019-04-14 18:21         ` Eli Zaretskii
2019-04-14 16:35     ` Eli Zaretskii

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).