From 2c1c56d553df6ee1973134fdb90543454b1146ca Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Wed, 5 Aug 2009 08:07:03 -0700 Subject: 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. --- lisp/emms-score.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emms-score.el') 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))) -- cgit v1.2.3