diff options
author | Michael Olson <mwolson@gnu.org> | 2006-08-22 13:06:00 +0000 |
---|---|---|
committer | Michael Olson <mwolson@gnu.org> | 2006-08-22 13:06:00 +0000 |
commit | 974d2130b9e2a8b4393cbed4af5365536ffe5619 (patch) | |
tree | 4df8c9736526fdd7b6bdab617e0a0d34b3ada5e0 /emms.el | |
parent | 789b5f8eb5577e680f10d8c46fe51abf2ea1385d (diff) |
Fix compilation warnings and don't clobber namespace
darcs-hash:20060822130608-1bfb2-c2a7fc4a64e0c781bb8727f4a70efbd72e3e3d0c.gz
Diffstat (limited to 'emms.el')
-rw-r--r-- | emms.el | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -436,9 +436,10 @@ If fifth arg LITERAL is non-nil, insert REPLACEMENT literally." (replace-in-string text regexp replacement literal)) (t (let ((repl-len (length replacement)) start) - (while (setq start (string-match regexp text start)) - (setq start (+ start repl-len) - text (replace-match replacement fixedcase literal text)))) + (save-match-data + (while (setq start (string-match regexp text start)) + (setq start (+ start repl-len) + text (replace-match replacement fixedcase literal text))))) text))) (defun emms-line-number-at-pos (&optional pos) |