bugcolor-theme - Bugs: bug #29142, Add a version variable or some...

 
 

bug #29142: Add a version variable or some other way to test version

Submitter:  None
Submitted:  Tue 09 Mar 2010 05:31:06 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  General error Status:  None
Assigned to:  None Open/Closed:  Open
Reproducibility:  Every Time
Step by step reproducibility:  *

I don't see any obvious way to distinguish different versions of color-theme (e.g. no variable to test). Perhaps there is a function or variable that I could test now (using fboundp or boundp), which is not defined in versions prior to 6.6.0? In ignorance of that, I'm doing this currently:
... (and (prog1 (require 'color-theme nil t)
            (load-library "color-theme-library"))
         ...)...
I use `load-library' because there is no feature to require (see bug #29141). I use the prog1 because I don't know how to distinguish color-theme versions, and I need the `and' to tell me whether color-themes, hopefully including the available themes, was loaded.
 
So my request is to add both `(provide 'color-theme-library)' (see bug #29141) and some way to distinguish versions. That won't really simplify my code, because I'll still need to do something like the above in order to handle older versions. But it would simplify things later, perhaps.

* Mandatory Fields

Add a New Comment Rich Markup
   

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code