[perhaps xemacs-beta is enough for the Cc list...]
On Tue, 2002-11-05 at 16:57, Martin Stjernholm wrote:
> It can, but doing that in CC Mode doesn't help the N other
packages out
> there. I'm looking for a solution that would need to be done once, and
> which would work for all of them.
Ok, I just wanted to be sure about the reason. Note that I approach
this from the perspective of an independent package maintainer, not an
XEmacs maintainer.
Cool. And I think we can work out a solution that will suit all
flavours of Emacsen out there.
Ok, but the end result approximately the same from the package point
of view, i.e. that the form after the ;;;###autoload cookie is
executed at XEmacs startup or some other time before the rest of the
package is loaded?
Yes. And user customizations are loaded after that. I'm sure someone
on the list can tell all the details about the load order of various
defaults and customizations; I don't know all the details.
If so, my question essentially remains: Is there some situation
where
the autoloads (wherever they might be stored) in older XEmacsen are
updated with newer packages?
No, if you mean that a package would actually touch some files that are
part of the core XEmacs. But of course, we are modifying something that
is defined in these files; for example these additions to
auto-mode-alist, and another one would be our recent new image-mode.el,
which removes offending entries from format-alist (they exist in XEmacs
< 21.4).
> /.../ Autoloads generated from packages stay in packages and
are
> installed with them. And modes in packages don't "exist in" any
> XEmacsen (>= 21.1). That's why it makes no sense to have a central
> auto-mode-alist in core containing entries for modes that don't
> necessarily exist.
That's very neat.
Indeed:)
> Given this, I don't see a reason why doing just a
>
> ;;;###autoload (add-to-list 'auto-mode-alist '("\\.m\\'" .
objc-mode))
>
> ...wouldn't solve the problem (ie. the only change to the current
> situation being that the list wouldn't be updated on mode load time).
It would be enough in XEmacs >= 21.1 when the user installs CC Mode
via the XEmacs package system, but I have to make sure things work
nicely also in older XEmacs versions, and in FSF Emacs, and when the
CC Mode dist tarball is downloaded directly from my website.
Ok. In that case, I'd say your earlier proposal with
c-append-to-auto-mode-alist would be the way to go.
And thanks for the heads up, I'll take a look at changing the
auto-mode-alist autoloads in other packages to the one-line
;;;###autoload(foo) form.
Cheers,
--
\/ille Skyttä
scop at
xemacs.org