From: Alex <agrambot@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 26837@debbugs.gnu.org
Subject: bug#26837: Wrong file in "autoloading failed to define" error
Date: Tue, 09 May 2017 01:26:59 -0600 [thread overview]
Message-ID: <87bmr24hj0.fsf@gmail.com> (raw)
In-Reply-To: <bzh90u28uv.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 08 May 2017 20:04:56 -0400")
Glenn Morris <rgm@gnu.org> writes:
> Am I mistaken in the following patch to fix this, or has load not been
> moving an already present file to the start of load-history since c 2005?
>
> --- a/src/lread.c
> +++ b/src/lread.c
> @@ -1885,7 +1885,7 @@ PREDICATE can also be an integer to pass to the faccessat(2) function,
> /* On the first cycle, we can easily test here
> whether we are reading the whole buffer. */
> if (b && first_sexp)
> - whole_buffer = (PT == BEG && ZV == Z);
> + whole_buffer = (BUF_PT (b) == BUF_BEG (b) && BUF_ZV (b) == BUF_Z (b));
>
> instream = stream;
> read_next:
I can't claim to know what is going on within that function, but your
patch seems to only work for some files (e.g. your bar.el). If bar
starts with a comment, then bar isn't moved to the top after evaluating
(load "bar").
next prev parent reply other threads:[~2017-05-09 7:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-08 19:14 bug#26837: Wrong file in "autoloading failed to define" error Glenn Morris
2017-05-09 0:04 ` Glenn Morris
2017-05-09 7:26 ` Alex [this message]
2017-05-09 16:33 ` Glenn Morris
2017-05-09 18:39 ` Glenn Morris
2017-05-09 19:12 ` Eli Zaretskii
2017-05-09 23:49 ` Glenn Morris
2017-05-10 2:43 ` Eli Zaretskii
2017-05-10 6:23 ` Glenn Morris
2017-05-18 20:11 ` Alex
2017-05-20 23:17 ` Glenn Morris
2017-05-20 23:24 ` Glenn Morris
2017-05-21 21:59 ` Alex
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=87bmr24hj0.fsf@gmail.com \
--to=agrambot@gmail.com \
--cc=26837@debbugs.gnu.org \
--cc=rgm@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.
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.