From unknown Sat Aug 16 15:56:29 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11238 <11238@debbugs.gnu.org> To: bug#11238 <11238@debbugs.gnu.org> Subject: Status: 24.0.95; eval-buffer and load hangup problem Reply-To: bug#11238 <11238@debbugs.gnu.org> Date: Sat, 16 Aug 2025 22:56:29 +0000 retitle 11238 24.0.95; eval-buffer and load hangup problem=20 reassign 11238 emacs submitter 11238 Atsuo Ohki severity 11238 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 13 12:19:04 2012 Received: (at submit) by debbugs.gnu.org; 13 Apr 2012 16:19:04 +0000 Received: from localhost ([127.0.0.1]:57543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIjDC-0004TS-Hw for submit@debbugs.gnu.org; Fri, 13 Apr 2012 12:19:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34792) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIbaw-00084c-A3 for submit@debbugs.gnu.org; Fri, 13 Apr 2012 04:11:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIbZa-0001qd-T0 for submit@debbugs.gnu.org; Fri, 13 Apr 2012 04:09:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIbZa-0001qO-PR for submit@debbugs.gnu.org; Fri, 13 Apr 2012 04:09:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIbZV-000263-QB for bug-gnu-emacs@gnu.org; Fri, 13 Apr 2012 04:09:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIbZP-0001nK-94 for bug-gnu-emacs@gnu.org; Fri, 13 Apr 2012 04:09:33 -0400 Received: from utogwpl.gssm.otsuka.tsukuba.ac.jp ([210.154.96.162]:49183) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SIbZO-0001mp-QC for bug-gnu-emacs@gnu.org; Fri, 13 Apr 2012 04:09:27 -0400 Received: (qmail 56643 invoked from network); 13 Apr 2012 08:09:20 -0000 Received: from OneOfLocalMachines (HELO smr00) (10.2.1.1) by 10.1.1.1 with SMTP; 13 Apr 2012 08:09:20 -0000 From: Atsuo Ohki To: bug-gnu-emacs@gnu.org Subject: 24.0.95; eval-buffer and load hangup problem Date: Fri, 13 Apr 2012 17:09:12 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 13 Apr 2012 12:19:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) A file, which has illformed file local variable specification like "; -*-", makes eval-buffer and load functions hangup. an exit condition of lisp_file_lexically_bound_p(src/lread.c) is not enough. --- src/lread.c-ORIG Tue Mar 6 19:59:20 2012 +++ src/lread.c Fri Apr 13 16:54:03 2012 @@ -839,7 +839,7 @@ } /* Stop scanning if no colon was found before end marker. */ - if (!in_file_vars) + if (!in_file_vars || ch == '\n' || ch == EOF) /* XXXX */ break; while (i > 0 && (var[i - 1] == ' ' || var[i - 1] == '\t')) In GNU Emacs 24.0.95.1 (i486-ibm-freebsd6.2, X toolkit, Xaw3d scroll bars) of 2012-04-13 on sma Windowing system distributor `The X.Org Foundation', version 11.0.70200000 Configured using: `configure 'i486-ibm-freebsd6.2' '--srcdir=/usr/src/local/GNU/emacs/emacs-24.0.95' '--with-x' '--x-includes=/usr/local/X11R6/include' '--x-libraries=/usr/local/X11R6/lib' '--with-x-toolkit=lucid' '--without-xim' '--without-xpm' '--without-jpeg' '--without-tiff' '--without-gif' '--without-png' 'build_alias=i486-ibm-freebsd6.2' 'host_alias=i486-ibm-freebsd6.2' 'target_alias=i486-ibm-freebsd6.2' 'CC=gcc' 'LDFLAGS=-L/usr/local/lib'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a Recent messages: Loading /usr/local/share/emacs/site-lisp/site-start-24.x.el (source)... Loading /usr/local/share/emacs/24.0.95/site-lisp/canna-leim.el (source)...done Loading /usr/local/share/emacs/site-lisp/site-start-24.x.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils canna-leim canna japan-util time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 13 14:10:38 2012 Received: (at 11238-done) by debbugs.gnu.org; 13 Apr 2012 18:10:38 +0000 Received: from localhost ([127.0.0.1]:57621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIkxB-00074x-31 for submit@debbugs.gnu.org; Fri, 13 Apr 2012 14:10:37 -0400 Received: from ironport-out.teksavvy.com ([206.248.143.162]:43658) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIkx7-00074o-HW for 11238-done@debbugs.gnu.org; Fri, 13 Apr 2012 14:10:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjIKACxOgk9FpZkY/2dsb2JhbABDDrYJggwDgQyBCIIJAQEEAVYjBQsLNBIUGA0kiBwFtjKLYYR5BKRFgV2CMFM X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="174090976" Received: from 69-165-153-24.dsl.teksavvy.com (HELO pastel.home) ([69.165.153.24]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Apr 2012 14:09:13 -0400 Received: by pastel.home (Postfix, from userid 20848) id BAAC05809E; Fri, 13 Apr 2012 14:09:12 -0400 (EDT) From: Stefan Monnier To: Atsuo Ohki Subject: Re: bug#11238: 24.0.95; eval-buffer and load hangup problem Message-ID: References: Date: Fri, 13 Apr 2012 14:09:12 -0400 In-Reply-To: (Atsuo Ohki's message of "Fri, 13 Apr 2012 17:09:12 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11238-done Cc: 11238-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Version:24.1 > A file, which has illformed file local variable specification > like "; -*-", makes eval-buffer and load functions hangup. Very good catch. And thanks for the patch. Installed, Stefan From unknown Sat Aug 16 15:56:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 12 May 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator