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-streams.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emms-streams.el') diff --git a/lisp/emms-streams.el b/lisp/emms-streams.el index bece71e..b81abe7 100644 --- a/lisp/emms-streams.el +++ b/lisp/emms-streams.el @@ -323,7 +323,7 @@ POPUP-HEIGHT is the height of the new frame, defaulting to (let ((file (expand-file-name file))) (if (file-readable-p file) (with-temp-buffer - (insert-file-contents-literally file) + (emms-insert-file-contents file) (goto-char (point-min)) (read (current-buffer))) emms-stream-default-list))) -- cgit v1.2.3