From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: unexpected byte-compiler behaviour Date: Thu, 9 Mar 2017 10:18:13 -0800 Message-ID: References: <20170309174614.GA3572@workstation> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1489083556 24157 195.159.176.226 (9 Mar 2017 18:19:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 18:19:16 +0000 (UTC) Cc: hector To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 09 19:19:12 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm2ea-0005aR-H6 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 19:19:08 +0100 Original-Received: from localhost ([::1]:35671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm2eg-00022w-GV for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 13:19:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm2e9-00021a-7O for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 13:18:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm2e4-0003xV-C5 for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 13:18:41 -0500 Original-Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:35451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cm2e4-0003wy-6R for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 13:18:36 -0500 Original-Received: by mail-qk0-x22e.google.com with SMTP id v125so129761146qkh.2 for ; Thu, 09 Mar 2017 10:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=aO3mjv7qyfZ1Oc/stnZaEDhXAstGCFBc+uhabjKHih4=; b=iKbV1lbX2R3a8lUwVnSvehrVZiJMmXNdLSIbcOZECs4pBY44s/9eVRt9qxx2NY70Ie whQ7KsfBrIYTZWJRUjMoMOVs5/syMw5aojr+j++H22wknfk9FqOX98u2Q7/cE3PS/F2Z G+nepB0+GVUugubmYRKXpYRw0yXzwT7doXTFOYC8EEP7QMWxm/bshecSpxr0PmjrWF5q GpN0i+2RT6o3H4ijl4lxcjpetOKMm1fG7J7zWHBoZSRxTu0scwlE/O82PKKAbfepg54k KSoENh2qMLY7u+9Y7EHbOuuRfdRXjT0KXJpgoaekvz4acrQdUoOru4sr9aVIuL77lwpA kRwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=aO3mjv7qyfZ1Oc/stnZaEDhXAstGCFBc+uhabjKHih4=; b=KiEb0OAWE7RaTjhF9nGhDDFbgYFmCffSgWHN72dM42EVboPZEwzQdmRAupHuPSCSxC UMN1+z1Q5CWtI0kEZdnOcKjyxf9trWwq7zH3Mg8EB/d6Ju+QdqBIcFrvwIievVy65qXQ cqMpZW16LRpD/aavK+vdBlliex1uC7oBuqQTgg/R6Od9zenEjHBILGeWlGJaoDL6MAeE bXfmx/fpqPEjmKsLGphFY0Iablv1Pzolsi3dX2vasVOH7XHhwLwvMWkNUc4FN2nDWQV3 RIQqnwsRr+X1NBB8jxi78a4t4YWqYlmSB4WwxUF2dBmWqHlSudQb4sxCURFpow17ua38 EFrQ== X-Gm-Message-State: AFeK/H0QYAbKGQ57O6MRF2jrCsI1310HjTM+W1ZpE0808LYIB7BUZeYmy5tZwQrmsG88/xaLZsoZWOl1/M2hJQ== X-Received: by 10.233.237.76 with SMTP id c73mr15976022qkg.160.1489083514052; Thu, 09 Mar 2017 10:18:34 -0800 (PST) Original-Received: by 10.237.49.162 with HTTP; Thu, 9 Mar 2017 10:18:13 -0800 (PST) In-Reply-To: <20170309174614.GA3572@workstation> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::22e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112495 Archived-At: hector wrote: > I'm trying to compile a file and it's driving me crazy. > At some point of the file I'm reading unexpected messages: > > lyqi.el:137:1:Warning: `(abbrev :initarg :abbrev)' is a malformed functio= n > > There's something weird going on here. So I write a nonsense function cal= l > at top level: > (djghalkjhg) > > The byte-compiler just skips this and keeps showing the first message. > > When I cut the file at this point the compiler says what I expect: > > tmp.el:136:1:Warning: the function `djghalkjhg' is not known to be define= d. > > How can this be? > > This leads me to think that the parser is doing more than one pass since > a text after this point is affecting compilation at this point. > > If this is true, what the heck is causing it to not report that > function "djghalkjhg" is not defined? In Emacs 25.1, I see the behavior you would expect. With this content in a file test.el: ;; test.el ((abbrev :initarg :abbrev) 'foo) (djghalkjhg) I call `byte-compile-file' and see these warnings: Compiling file /tmp/test.el at Thu Mar 9 10:14:23 2017 Entering directory =E2=80=98/tmp/=E2=80=99 test.el:3:1:Warning: =E2=80=98(abbrev :initarg :abbrev)=E2=80=99 is a m= alformed function In end of data: test.el:6:1:Warning: the function =E2=80=98djghalkjhg=E2=80=99 is not k= nown to be defined. Warnings don't cause the byte compiler to stop, so you should indeed see both warnings, as I do. John