emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] trunk r113747: lisp/frameset.el: Convert `frameset' to


From: Stefan Monnier
Subject: Re: [Emacs-diffs] trunk r113747: lisp/frameset.el: Convert `frameset' to vector and add new slots.
Date: Thu, 08 Aug 2013 13:30:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>> I don't think there's a way to do that.

> Hmm, there's no reason why this wouldn't work:

> ;;;###autoload
> (autoload 'frameset-p "frameset" "Return non-nil if OBJECT is a
> frameset, nil otherwise." nil)

Of course.  You could also do it as:

;;;###autoload (autoload 'frameset-p "frameset"
;;;###autoload   "Return non-nil if OBJECT is a frameset, nil otherwise." nil)

which has the advantage tht this code is not run when loading frameset.
Or you could do it by replacing the declare-function call (in
register.el) by a call to `autoload'.

> and, though ugly, is still prettier than having to require 'frameset
> from register.el (which has to be done at the point of call of
> frameset-p, because register.el is preloaded).

> WDYT?

Agreed.  I only meant to say that there's no way to do it "cleanly"
(e.g. such that the arguments to `autoload' are constructed
automatically from contextual information).


        Stefan



reply via email to

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