emacs-pretest-bug
[Top][All Lists]
Advanced

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

RE: defined-colors doc string doesn't describe nil FRAME


From: Drew Adams
Subject: RE: defined-colors doc string doesn't describe nil FRAME
Date: Tue, 6 Jun 2006 14:58:57 -0700

    > OK. So, IIUC, a library that is not going to be used on a tty
    > might have an interest in caching (defined-colors) in its own defconst
    > variable. Correct?

    Maybe (assuming I didn't miss anything in my description).

    But how would you know that a library is not going to be used on a
    tty?

It requires frames.

    Also, is the call to defined-colors really that expensive?  I just
    tried it, and the response was immediate.

I call it quite often (although I do use a `let' to avoid multiple calls in
the same function). Rather, I call it in user commands that are on
repeatable keys, so they are often executed in succession, with the same
call to `defined-colors', producing the same list of colors.






reply via email to

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