emacs-devel
[Top][All Lists]
Advanced

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

Re: master 0883e98 1/3: New functions for getting and setting image prop


From: Michael Heerdegen
Subject: Re: master 0883e98 1/3: New functions for getting and setting image properties
Date: Sun, 21 Feb 2016 12:55:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux)

Lars Ingebrigtsen <address@hidden> writes:

> Michael Heerdegen <address@hidden> writes:
>
> > AFAIK places stuff is implemented in gv.el now, and that doesn't depend
> > on cl-lib, I think.
>
> Ah, I see.  gv doesn't seem to be loaded by loadup, either, though, so
> is that something that can be used in dumped files?

After reading the sources, AFAIK it's sufficient to load it when
compiling.

You can use the `gv-setter' declare spec in your defun.  Then the byte
compiler will autoload gv and put something like

  (put 'function 'gv-expander [byte code])

in the compiled file.  That doesn't depend on gv when loading.

OTOH when compiling, `setf' forms are expanded to something that doesn't
depend on gv either.

That's just how I think it works, but that stuff is used widely in the
sources.


Michael.




reply via email to

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