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

 
 

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

Submitter:  None
Submitted:  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:
 
(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.

* 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-d3ae.
Corresponding source code