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-lyrics.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emms-lyrics.el') diff --git a/lisp/emms-lyrics.el b/lisp/emms-lyrics.el index 1645351..1e15c2e 100644 --- a/lisp/emms-lyrics.el +++ b/lisp/emms-lyrics.el @@ -254,7 +254,7 @@ FILE should be under the same directory as the music file, or under (when (and file (file-exists-p file)) (with-temp-buffer (let ((coding-system-for-read emms-lyrics-coding-system)) - (insert-file-contents file) + (emms-insert-file-contents file) (while (search-forward-regexp "\\[[0-9:.]+\\].*" nil t) (let ((lyric-string (match-string 0)) (time 0) -- cgit v1.2.3