bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rec-mode: No autoload for `rec-mode'


From: Liliana Marie Prikler
Subject: Re: rec-mode: No autoload for `rec-mode'
Date: Fri, 10 Dec 2021 20:28:55 +0100
User-agent: Evolution 3.34.2

Hi Jose.
Thanks for the quick reply.

Am Freitag, den 10.12.2021, 16:51 +0100 schrieb Jose E. Marchesi:
> Hi Liliana.
> Thanks for reaching out.
> 
> > Hello everyone,
> > 
> > typically, Elisp libraries that provide major modes, such as c-mode 
> > or org-mode, use an autoload cookie to have them be known even if
> > the mode itself is not yet loaded.  [...]
> 
> The latest versions of rec-mode are available via ELPA.  They feature
> ;;;###autoload marks.
Perhaps I was a little unclear; the point is that such a cookie is
missing before

  (define-derived-mode rec-mode nil "Rec"

Therefore, even with autoloads built and loaded, the major mode "rec-
mode" is unbound and won't be loaded unless you manually require
recutils or set up the autoload yourself.  The suggestion is to add it
like so:

  ;;;###autoload
  (define-derived-mode rec-mode nil "Rec"

Cheers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]