From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#931: 23.0.60; Bug in bytecomp.el: displaying warnings Date: Mon, 8 Sep 2008 21:35:23 +0200 Message-ID: <1220902523.951243.11457@green> Reply-To: michael_heerdegen@web.de, 931@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1220903270 9261 80.91.229.12 (8 Sep 2008 19:47:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2008 19:47:50 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 21:48:46 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kcmj4-0000rg-Lk for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 21:48:42 +0200 Original-Received: from localhost ([127.0.0.1]:45926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kcmi4-0002et-Qn for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 15:47:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kcmi1-0002eF-1a for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 15:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kcmhz-0002ca-At for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 15:47:36 -0400 Original-Received: from [199.232.76.173] (port=45676 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kcmhz-0002cT-0U for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 15:47:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40684) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kcmhy-0005yx-Io for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 15:47:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88JlW0f007322; Mon, 8 Sep 2008 12:47:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m88Jj3b6005881; Mon, 8 Sep 2008 12:45:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Michael Heerdegen Original-Sender: Michael_Heerdegen@web.de Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 08 Sep 2008 19:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 931 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12209026563849 (code B ref -1); Mon, 08 Sep 2008 19:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 8 Sep 2008 19:37:36 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88JbWNA003843 for ; Mon, 8 Sep 2008 12:37:34 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:34890) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KcmWZ-00088j-EO for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 15:35:47 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KcmYA-0004LN-UA for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 15:37:32 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:56210) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcmYA-0004L1-Ha for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 15:37:26 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id B8AB0EEEF0EE for ; Mon, 8 Sep 2008 21:37:24 +0200 (CEST) Original-Received: from [92.75.235.128] (helo=green) by smtp05.web.de with asmtp (WEB.DE 4.109 #226) id 1KcmY8-0007fl-00 for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 21:37:24 +0200 X-Sender: michael_heerdegen@web.de X-Provags-ID: V01U2FsdGVkX1/SN1YFL+MlulurhOf/72HW0NE1N0JvHaibw+tw Ku60BlrOwqci2wteBCf9IWXnspr/guC8ZiRKEAvPzihw37IrT5 cKbf4bzDp0kAsd6BJxzQ== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 08 Sep 2008 15:47:36 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20349 gmane.emacs.pretest.bugs:23015 Archived-At: When pop-up-windows is nil, the byte compiler sometimes aborts with the error message End of file during parsing after displaying warnings, although the source file is ok. You can reproduce this with CVS Gnu Emacs as follows: 1. Create a file test.el with the following contents: (setq a 1) 2. emacs -Q 3. M-: (setq pop-up-windows nil) RET 4. Byte compile test.el The reason for the bug is an error in `byte-compile-from-buffer'. Its definition looks like that: (defun byte-compile-from-buffer (inbuffer &optional filename) ... (let ... (byte-compile-close-variables ... (displaying-byte-compile-warnings ... (with-current-buffer inbuffer ... (while ... ...) ...) ...)) ...)) If pop-up-windows is nil, and warnings have to be displayed, `byte-compile-report-error' is called, and after that, (current-buffer) will be the Compile Log buffer, and the current buffer is not restored for further iterations of the while loop.