aboutsummaryrefslogtreecommitdiff
path: root/lisp/emms-score.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2009-08-05 08:07:03 -0700
committerMichael Olson <mwolson@gnu.org>2009-08-05 08:07:03 -0700
commit2c1c56d553df6ee1973134fdb90543454b1146ca (patch)
tree24c99ac1faa709960a83a5922ddcd176ea4082e3 /lisp/emms-score.el
parent8176350744ebefe066478bfc3de9a00e34261b77 (diff)
Introduce emms-insert-file-contents.
This function is a safe way to insert the contents of a file without triggering major mode detection, and has been tested on several versions of Emacs and XEmacs.
Diffstat (limited to 'lisp/emms-score.el')
-rw-r--r--lisp/emms-score.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emms-score.el b/lisp/emms-score.el
index a606c25..71e65a3 100644
--- a/lisp/emms-score.el
+++ b/lisp/emms-score.el
@@ -249,7 +249,7 @@ See also `emms-next-noerror'."
(puthash (car elt) (cdr elt) emms-score-hash))
(read
(with-temp-buffer
- (insert-file-contents emms-score-file)
+ (emms-insert-file-contents emms-score-file)
(buffer-string))))
;; when file not exists, make empty but valid score file
(emms-score-save-hash)))