From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#636: marked as done (23.0.60; Read syntax error while byte-compiling) Date: Mon, 11 Aug 2008 14:50:03 -0700 Message-ID: References: <87bpzzfcu9.fsf@stupidchicken.com> <874p652n9s.fsf@sphinx.net.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1218491403-19239-0" X-Trace: ger.gmane.org 1218492464 22288 80.91.229.12 (11 Aug 2008 22:07:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 22:07:44 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 00:08:33 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 1KSfZ2-0005HB-Iw for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 00:08:33 +0200 Original-Received: from localhost ([127.0.0.1]:54712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSfY6-0007rq-HD for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 18:07:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSfY2-0007nf-5C for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 18:07:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSfXz-0007h6-Bb for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 18:07:29 -0400 Original-Received: from [199.232.76.173] (port=37439 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSfXz-0007gr-84 for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 18:07:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38297) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSfXy-0006zf-Jb for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 18:07:27 -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 m7BM7OP7025686; Mon, 11 Aug 2008 15:07:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7BLo380019332; Mon, 11 Aug 2008 14:50:03 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 636 X-Emacs-PR-Package: emacs X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:19302 Archived-At: This is a multi-part message in MIME format... ------------=_1218491403-19239-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Mon, 11 Aug 2008 17:42:22 -0400 with message-id <87bpzzfcu9.fsf@stupidchicken.com> and subject line Re: bug#636: Please fix before the release of 23.1 has caused the Emacs bug report #636, regarding 23.0.60; Read syntax error while byte-compiling to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 636: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D636 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1218491403-19239-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,RCVD_IN_NIX1,WWWRU autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Aug 2008 07:44:27 +0000 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 m717iMdf008018 for ; Fri, 1 Aug 2008 00:44:25 -0700 Received: from mx10.gnu.org ([199.232.76.166]:33163) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KOpIN-0002my-60 for emacs-pretest-bug@gnu.org; Fri, 01 Aug 2008 03:43:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KOpJA-0004Zt-C2 for emacs-pretest-bug@gnu.org; Fri, 01 Aug 2008 03:44:20 -0400 Received: from sphinx.net.ru ([82.146.58.194]:60547) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KOpJ9-0004Yn-MZ for emacs-pretest-bug@gnu.org; Fri, 01 Aug 2008 03:44:16 -0400 Received: from blizzard (93-80-221-60.broadband.corbina.ru [93.80.221.60]) (authenticated bits=0) by sphinx.net.ru (8.14.3/8.14.2) with ESMTP id m717i8xb023656 for ; Fri, 1 Aug 2008 11:44:09 +0400 (MSD) (envelope-from dima@sphinx.net.ru) From: Dmitry Dzhus To: emacs-pretest-bug@gnu.org Subject: 23.0.60; Read syntax error while byte-compiling Date: Fri, 01 Aug 2008 11:43:43 +0400 Message-ID: <874p652n9s.fsf@sphinx.net.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) The problem occurs when one tries to byte-compile a file with the following contents (note the newline after `eval-when-compile`): (eval-when-compile (require 'cc-mode)) Using this command: emacs -q --batch -f batch-byte-compile file.el Which fails with error: In toplevel form: test1.el:2:19:Error: Invalid read syntax: ")" Visiting this file in Emacs and attempting to byte-compile it using the `M-x byte-compile-file RET` command results in the same error being shown in *Compile-Log* buffer. =20=20=20=20 In the same time, if there is no newline after `eval-when-compile`, e.g. (eval-when-compile (require 'cc-mode)) Byte-compiling proceeds successfully. The problem occurs only if one requires `cc-mode`. Probably this is somehow related with `cc-bytecomp` module. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-07-30 on blizzard Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--prefix=3D/usr' '--host=3Di686-pc-linux-gnu' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--datadir=3D/usr/share' '--sysconfdir=3D/etc' '--localstatedir=3D/var/lib' '--program-suffix=3D-emacs-23' '--infodir=3D/usr/share/info/emacs-23' '--without-carbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--enable-font-backend' '--with-freetype' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=3Dgtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--build=3Di686-pc-linux-gnu' 'build_alias=3Di686-pc-linux-gnu' 'host_alias=3Di686-pc-linux-gnu' 'CFLAGS=3D-O2 -march=3Dnative -pipe' 'LDFLAGS=3D-Wl,-O1'' Important settings: value of $LC_ALL:=20 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: C value of $LC_TIME: nil value of $LANG: ru_RU.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t --=20 Happy Hacking. http://sphinx.net.ru =E3=82=80 ------------=_1218491403-19239-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.8 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 636-done) by emacsbugs.donarmstrong.com; 11 Aug 2008 21:42:00 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7BLfvSs017523 for <636-done@emacsbugs.donarmstrong.com>; Mon, 11 Aug 2008 14:41:58 -0700 Received: by cyd (Postfix, from userid 1000) id B7A9A57E2B5; Mon, 11 Aug 2008 17:42:22 -0400 (EDT) From: Chong Yidong To: Alan Mackenzie Cc: Ulrich Mueller , 636-done@emacsbugs.donarmstrong.com, emacs-devel@gnu.org, Glenn Morris , Michael Olson Subject: Re: bug#636: Please fix before the release of 23.1 References: <877ibp4hh3.fsf@vorlon.ganneff.de> <871w1xfmsb.fsf@grepfind.mwolson.org> <87ljzj3oad.fsf_-_@grepfind.mwolson.org> <18590.45488.891078.545308@a1ihome1.kph.uni-mainz.de> <18590.47471.82980.734389@a1ihome1.kph.uni-mainz.de> <87ljz45xfj.fsf@stupidchicken.com> <18591.59359.40969.641357@a1ihome1.kph.uni-mainz.de> <87fxpb5xbn.fsf@stupidchicken.com> <20080811190124.GB28138@muc.de> Date: Mon, 11 Aug 2008 17:42:22 -0400 In-Reply-To: <20080811190124.GB28138@muc.de> (Alan Mackenzie's message of "Mon, 11 Aug 2008 19:01:24 +0000") Message-ID: <87bpzzfcu9.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Alan Mackenzie writes: > The way I see it, it's a bug in `beginning-of-defun'. The docstring > says that a non-nil `beginning-of-defun-function' finds the pertinent > place, but beginning-of-defun then moves point somewhere else. I HATE > things that are ostensibly "helpful", but in reality are dumbing down, > and mainly just foul things up. This is part of the baggage in beginning-of-defun regarding whether column zero is the beginning of a defun. Changing this now might be unwise, so for the moment I've simply revised the docstring of beginning-of-defun for extra clarity. I've also changed cc-defs.el to use beginning-of-defun-raw, which is a more direct and side-effect free test of beginning-of-defun-function, and added a save-excursion for extra plus safety ;-) [Also, closing bug#636.] ------------=_1218491403-19239-0--