aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2007-07-12 21:14:00 +0000
committerMichael Olson <mwolson@gnu.org>2007-07-12 21:14:00 +0000
commitcc9aff2561eb18b720539cb43d2d43e06d54a75c (patch)
tree5d995713850216008595032a3480dded456a0080
parentcb8dad409fd2116e51f73c94e48e62ef493234f7 (diff)
Avoid even the most remote possibility of a conflict with color-theme.el and its very bad replace-in-string function
darcs-hash:20070712211444-1bfb2-74a2030fdfba44cfe7e2acb687783bdab1e23822.gz
-rw-r--r--emms-compat.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emms-compat.el b/emms-compat.el
index f20588b..74ecb48 100644
--- a/emms-compat.el
+++ b/emms-compat.el
@@ -103,7 +103,7 @@ If fifth arg LITERAL is non-nil, insert REPLACEMENT literally."
(cond
((fboundp 'replace-regexp-in-string)
(replace-regexp-in-string regexp replacement text fixedcase literal))
- ((fboundp 'replace-in-string)
+ ((and (featurep 'xemacs) (fboundp 'replace-in-string))
(replace-in-string text regexp replacement literal))
(t (let ((repl-len (length replacement))
start)