--- color-theme.el~ 2006-05-28 13:07:29 +0000 +++ color-theme.el 2008-03-18 05:33:06 +0000 @@ -73,9 +73,10 @@ "Non-nil if running XEmacs.") ;; Add this since it appears to miss in emacs-2x -(or (fboundp 'replace-in-string) - (defun replace-in-string (target old new) - (replace-regexp-in-string old new target))) +(if (fboundp 'replace-in-string) + (defalias 'color-theme-replace-in-string 'replace-in-string) + (defun color-theme-replace-in-string (target old new) + (replace-regexp-in-string old new target))) ;; face-attr-construct has a problem in Emacs 20.7 and older when ;; dealing with inverse-video faces. Here is a short test to check @@ -1626,8 +1627,8 @@ (add-to-list 'color-themes (list ',n (upcase-initials - (replace-in-string - (replace-in-string + (color-theme-replace-in-string + (color-theme-replace-in-string (symbol-name ',n) "^color-theme-" "") "-" " ")) ,author)) (defun ,n ()