bugcolor-theme - Bugs: bug #29140, erroneous double slash in...

 
 

bug #29140: erroneous double slash in `color-theme-libraries'

Submitted by:  None
Submitted on:  Tue 09 Mar 2010 05:22:48 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: General errorStatus: None
Assigned to: NoneOpen/Closed: Open
Reproducibility: Every Time
Step by step reproducibility: 

In the defcustom for `color-theme-libraries', you do this:

(directory-files
(concat (file-name-directory (locate-library "color-theme"))
"/themes")
t "^color-theme")

That is incorrect. `file-name-directory' already includes a slash at the end of its returned string, so the concat results in a double slash: "...//themes". Starting with Emacs 21, that double slash is tolerated by `directory-files', which DTRT, compensating. But for Emacs 20, `color-theme-initializes' raises an error when it tries (load library) - it chokes on the double slashes in each file name.

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 09 Mar 2010 05:22:48 PM UTC, original submission:
Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup