all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: rudalics@gmx.at
Cc: emacs-devel@gnu.org
Subject: Re: End of file while generating loaddefs.el
Date: Fri, 20 Nov 2015 23:10:37 +0200	[thread overview]
Message-ID: <83a8q85qcy.fsf@gnu.org> (raw)
In-Reply-To: <83egfl6p6a.fsf@gnu.org>

> Date: Fri, 20 Nov 2015 10:38:37 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> I guess the only way to debug this is see what happens inside prin1.
> AFAIR, it uses a temporary buffer to produce the string, so this might
> be due to GC or something.

I don't know why prin1 crashed, but I do know why Emacs complains
about end of file: there are null bytes in the middle of loaddefs.el.
Do you have those too?

Emacs creates loaddefs.el by visiting the previous one and scanning it
for certain patterns.  Those stray null bytes interrupt a pattern, so
the result is that Emacs tries to parse an incomplete sexp, and barfs.

if you also see these null bytes, delete them so that the expected
format of the file is preserved, then re-run "make autoloads" -- it
should succeed.

I don't know how these nulls ended up in loaddefs, the only hint is
that they appear in the same place which Emacs scans when it produces
this warning:

  Making generated-autoload-file local to  *autoload-file* while let-bound



  parent reply	other threads:[~2015-11-20 21:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-17 17:40 End of file while generating loaddefs.el Eli Zaretskii
2015-11-18  7:50 ` martin rudalics
2015-11-18 17:29   ` Eli Zaretskii
2015-11-19  8:13     ` martin rudalics
2015-11-19 16:15       ` Eli Zaretskii
2015-11-19 16:33         ` John Wiegley
2015-11-20  8:23         ` martin rudalics
2015-11-20  8:38           ` Eli Zaretskii
2015-11-20  9:46             ` David Kastrup
2015-11-20 14:50               ` Eli Zaretskii
2015-11-20 21:10             ` Eli Zaretskii [this message]
2015-11-21  8:33               ` martin rudalics
2015-11-21  8:49                 ` Eli Zaretskii
2015-11-21 11:23                   ` martin rudalics
2015-11-21 11:33                     ` David Kastrup
2015-11-21 11:59                       ` Eli Zaretskii
2015-11-21 11:57                     ` Eli Zaretskii
2015-11-21 15:29                     ` Juanma Barranquero

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a8q85qcy.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.