emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Ivan Kanis <banana@kanis.fr>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: hard coded autoload file
Date: Fri, 26 Apr 2013 08:36:19 +0200	[thread overview]
Message-ID: <87k3np7q8s.fsf@bzg.ath.cx> (raw)
In-Reply-To: <m0bo9233ag.fsf@kanis.fr> (Ivan Kanis's message of "Thu, 25 Apr 2013 19:53:27 +0200")

Hi Ivan,

Ivan Kanis <banana@kanis.fr> writes:

> It seems each file has the name of the autoload file hard coded at the
> end.
> For example at the end org-element.el:
> ;; Local variables:
> ;; generated-autoload-file: "org-loaddefs.el"
> ;; End:
> It sucks for me as I generate autoload with a different name. I made a
> workaround so it's fine.

Why do you generate autoloads with a different name?

> I think it would be better engineered no to have this stuff
> repeated at the end of each file.

We follow the Calc exemple here: .el files for which autoloads need to
be in Emacs loaddefs.el don't have this local variable set, and files
for which autoloads are put into org-loaddefs.el do have this

This is for reducing the number of Org autoloads in loaddefs.el as it
speeds up Emacs startup time.

> It would be better that it's specified somewhere in the autoconf.

> If I work on this would the patch be accepted?

I can imagine some ad hoc function putting the autoloads were they
belong, but this would be ad hoc.  I guess you'll have first to
explain why the current setup is problematic.  


  reply	other threads:[~2013-04-26  6:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-25 17:53 Ivan Kanis
2013-04-26  6:36 ` Bastien [this message]
2013-04-26  7:55   ` Ivan Kanis

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:

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87k3np7q8s.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=banana@kanis.fr \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: hard coded autoload file' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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