From: Glenn Morris <rgm@gnu.org>
To: Alex <agrambot@gmail.com>
Cc: 26837@debbugs.gnu.org
Subject: bug#26837: Wrong file in "autoloading failed to define" error
Date: Tue, 09 May 2017 12:33:42 -0400 [thread overview]
Message-ID: <h8o9v2ng61.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87bmr24hj0.fsf@gmail.com> (Alex's message of "Tue, 09 May 2017 01:26:59 -0600")
Alex wrote:
>> - whole_buffer = (PT == BEG && ZV == Z);
>> + whole_buffer = (BUF_PT (b) == BUF_BEG (b) && BUF_ZV (b) == BUF_Z (b));
[...]
> 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").
The intent of the code seems to be to only adjust an existing
load-history element for some file if the entire file is being loaded.
I guess in the leading comment case, something else has already moved
point looking for a significant leading comment (eg lexbind, script,
prop-line). Hmmm.
next prev parent reply other threads:[~2017-05-09 16:33 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
2017-05-09 16:33 ` Glenn Morris [this message]
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=h8o9v2ng61.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=26837@debbugs.gnu.org \
--cc=agrambot@gmail.com \
/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.