From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Cc: hector <hectorlahoz@gmail.com>
Subject: Re: unexpected byte-compiler behaviour
Date: Thu, 9 Mar 2017 10:18:13 -0800 [thread overview]
Message-ID: <CAOj2CQRV+m_85C10-NFi2RU8e6hqVSeZ+4Ueis-ZKbTNP8kCcw@mail.gmail.com> (raw)
In-Reply-To: <20170309174614.GA3572@workstation>
hector <hectorlahoz@gmail.com> 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 function
>
> There's something weird going on here. So I write a nonsense function call
> 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 defined.
>
> 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 ‘/tmp/’
test.el:3:1:Warning: ‘(abbrev :initarg :abbrev)’ is a malformed function
In end of data:
test.el:6:1:Warning: the function ‘djghalkjhg’ is not known to be defined.
Warnings don't cause the byte compiler to stop, so you should indeed see
both warnings, as I do.
John
next prev parent reply other threads:[~2017-03-09 18:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 17:46 unexpected byte-compiler behaviour hector
2017-03-09 18:18 ` John Mastro [this message]
2017-03-09 18:20 ` John Mastro
2017-03-09 19:17 ` hector
2017-03-09 19:25 ` hector
2017-03-09 21:55 ` John Mastro
2017-03-09 22:49 ` hector
2017-03-09 23:28 ` John Mastro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOj2CQRV+m_85C10-NFi2RU8e6hqVSeZ+4Ueis-ZKbTNP8kCcw@mail.gmail.com \
--to=john.b.mastro@gmail.com \
--cc=hectorlahoz@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).