unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: Chong Yidong <cyd@gnu.org>
Cc: 10396@debbugs.gnu.org
Subject: bug#10396: 24.0.92; update-directory-autoloads now adds path element to filename in autoload definition
Date: Sat, 28 Jan 2012 19:41:44 +0100	[thread overview]
Message-ID: <877h0bhdp3.fsf@engster.org> (raw)
In-Reply-To: <87liotbkue.fsf@gnu.org> (Chong Yidong's message of "Fri, 27 Jan 2012 16:39:21 +0800")

Chong Yidong writes:
> David Engster <deng@randomsample.de> writes:
>
>> Stefan Monnier writes:
>>>> This might not be a bug, but I couldn't find anything in NEWS regarding
>>>> this issue, and it breaks my personal autoload setup.
>>>
>>> It's a feature: since foo/bar is not in `load-path', autoload.el figures
>>> that only "bar/test" will properly load the file.
>>> So you just need to set `load-path' to include `foo/bar' like you
>>> probably already do elsewhere.
>>
>> But it's a new feature, right? Emacs 23.3 doesn't seem to do that.
>>
>> If it's new, I think it should be mentioned in NEWS; it is an important
>> change for anyone creating Emacs packages, since I now have to make sure
>> that `load-path' during autoload-generation and during actual usage of
>> the package is consistent.
>
> Could you suggest a NEWS entry?  That would be helpful, since I don't
> understand how the current autoload behavior breaks your setup.

Here's a suggestion:

When generating autoloads, `update-directory-autoloads' now longer
assumes that every inspected file will be in your `load-path', but will
now generate relative names according to your current `load-path' setting.

Stefan, please correct me if this is not a proper description of the new
behavior.  Also, I'm not sure if this new feature only affects
`update-directory-autoloads', but also other autoload functions.

-David





  reply	other threads:[~2012-01-28 18:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-29 13:37 bug#10396: 24.0.92; update-directory-autoloads now adds path element to filename in autoload definition David Engster
2011-12-30 11:42 ` Stefan Monnier
2011-12-31 10:53   ` David Engster
2012-01-27  8:39     ` Chong Yidong
2012-01-28 18:41       ` David Engster [this message]
2012-02-26  9:51         ` Chong Yidong

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=877h0bhdp3.fsf@engster.org \
    --to=deng@randomsample.de \
    --cc=10396@debbugs.gnu.org \
    --cc=cyd@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 public inbox

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

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).