From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alex Gramiak Newsgroups: gmane.emacs.bugs Subject: bug#35272: [PATCH] * lisp/frame.el (frame--size-history): Fix infloop. Date: Sun, 14 Apr 2019 09:37:10 -0600 Message-ID: <87bm18vbrt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="104862"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) To: 35272@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 14 17:38:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFhCz-000R78-Ai for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Apr 2019 17:38:17 +0200 Original-Received: from localhost ([127.0.0.1]:36946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFhCy-0006uM-Bf for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Apr 2019 11:38:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFhCl-0006uD-EY for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 11:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFhCk-0007qd-KW for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 11:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47706) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hFhCk-0007qW-FJ for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 11:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hFhCk-0001Eu-93 for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 11:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Gramiak Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Apr 2019 15:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15552562444717 (code B ref -1); Sun, 14 Apr 2019 15:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Apr 2019 15:37:24 +0000 Original-Received: from localhost ([127.0.0.1]:33017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFhC8-0001E0-2z for submit@debbugs.gnu.org; Sun, 14 Apr 2019 11:37:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFhC4-0001Dm-12 for submit@debbugs.gnu.org; Sun, 14 Apr 2019 11:37:20 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFhBy-0007bw-Qz for submit@debbugs.gnu.org; Sun, 14 Apr 2019 11:37:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFhBx-0006rP-Ut for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 11:37:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFhBx-0007bY-5r for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 11:37:13 -0400 Original-Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:42014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hFhBw-0007bJ-R2 for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2019 11:37:13 -0400 Original-Received: by mail-pf1-x42e.google.com with SMTP id w25so7358154pfi.9 for ; Sun, 14 Apr 2019 08:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=Lh+7qBFalayE28ZGNKxUFIo1q1eu9BsEY2w2tHdXdCk=; b=go8jntFXMEXZfsoopT+jRm2m1/819kleBj5Aoy82V1hR5/EVhSFAfoec2++5XLjUGl YbCwqO3FAdril3+y4fZERiaVlJJlZkJiVlzImdfXgOcImCBGPYixqxv4hCBamOxqYKVj 1vngr/qlFycbQsqrT1POPm7y5uc5ugoIgI9asD9xdn2+XAIGiOCICMPH6kYmaX793nal RUBzqATFEOXMH1ts9LsW0SuvX+4NZG/4tKdp1sxRRxvxFWsBAS24OkK0YaxZXtuZm8FM JTdlNJTWRMmumJnvQZVptdsdYlQOZ9Tn1bI/x1kM1x2D2IHH05Xl08fBSmYf0MVWAFSB B18w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=Lh+7qBFalayE28ZGNKxUFIo1q1eu9BsEY2w2tHdXdCk=; b=Hs4CdpWfQ9H3jtvwNMWr3fCfAn/+xG7qceSj5CtKFtjS1bF6ozJ2CB7xy9KRmAuQfO 7Zp7ahAL993qE09ghirfwYdGGyWXWOnefPCjorzbQb2gKSqPXACRdfQicWo5Jo13lyjv 3bUmr3kKhKchYKlZ9pfoBRq91x15vqco3/rQEM+IkOZ4Q/ifq0STxxZNzUCiEaTtg0nk rrsqg5+IxOq/IwyYQvxcG7ZGIdgBhxiYss3SJ0bFJDMFBrasjDEcK1v+Q63SCtnM4B1i E8I8/CwURKmF/3bCTDNLk1CIraQAld5DXZQFgI2/JsA/etN2LH2L8xYVUNLbccioLJlD vXDQ== X-Gm-Message-State: APjAAAXOjXf1Gq/Q6yAQLh5FwZ6gCT6HZDLTr15650VburCeMuUtStFl sfG+pVCNBk+L6ZoZiWn7hkzCYPV7 X-Google-Smtp-Source: APXvYqzurIu7GRCJMmUirRQYBsBXQ/ROsigWA9SNcP4BPhRxLuwEh/dTUQ+HdbokVHsnUZ564YcD9Q== X-Received: by 2002:a63:195f:: with SMTP id 31mr65493459pgz.116.1555256230520; Sun, 14 Apr 2019 08:37:10 -0700 (PDT) Original-Received: from lylat ([2604:3d09:e37f:1500:1a72:4878:e793:7302]) by smtp.gmail.com with ESMTPSA id j20sm34064648pfn.84.2019.04.14.08.37.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Apr 2019 08:37:09 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157629 Archived-At: --=-=-= Content-Type: text/plain frame-size-history can be nil, which resulted in an infloop. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-frame.el-frame-size-history-Fix-infloop.patch Content-Description: infloop >From 5695525ed1477e908536d159da670f0f1ab4a369 Mon Sep 17 00:00:00 2001 From: Alexander Gramiak 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 --=-=-=--