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:  None Severity:  3 - Normal
Item Group:  General error Status:  None
Assigned to:  None Open/Closed:  Open
Reproducibility:  Every Time
Step by step reproducibility: 

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

(concat (file-name-directory (locate-library "color-theme"))
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 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:


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

Attach Files:

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.3