On Tue, Aug 4, 2009 at 10:03 AM, Yoni Rabkin<[email protected]> wrote:
> Here is what emms-playlist-mode uses. I think it's good in this regard:
>
> ...
>  (let* ((s)
>         (buffer (find-file-noselect filename))
>         (name   (buffer-name buffer)))
>    (with-current-buffer buffer
>      (setq s (read (buffer-string))))
>    (kill-buffer buffer)

That also does major mode detection (and a whole host of other revert
magic).  I've already got the fix installed, and changed some other
instances to use it, just need to test it 8hrs from now.

Sorry for not replying to all, still getting used to new email client.

-- 
Michael Olson  ||  http://mwolson.org/
Projects: Emacs, Muse, ERC, EMMS


_______________________________________________
Emms-help mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emms-help

Reply via email to