It seems that what was missing earlier (before we added emms-all) was
(add-to-list 'emms-track-initialize-functions 'emms-info-initialize-track)
(setq emms-track-description-function 'emms-info-track-description)

I have a shorter version now (more lines, but less code than emms-all). Anyone 
who is interested, can see it here: https://paste.ee/p/2Xklh 
https://web.archive.org/web/20200901181249/https://paste.ee/p/2Xklh

> ----------------------------------------
> From: Yoni Rabkin <[email protected]>
> Sent: Tue Sep 01 14:36:42 CEST 2020
> To: Edgar Lux <[email protected]>
> Cc: <[email protected]>
> Subject: Re: How do I get the track info?
> 
> 
> Edgar Lux <[email protected]> writes:
> 
> > FYI, this is what I have in my configuration file to test
> >
> > (require 'package)
> > (setq package-archives nil)
> > (package-initialize)
> >
> > (add-to-list 'load-path "path-to-emms/")
> > (require 'emms)
> > ;; from (emms-setup) and (emms-minimalistic)
> > ;; see also https://pastebin.com/2hFXPJ56
> > (require 'emms-source-file)
> > (require 'emms-source-playlist)
> > (require 'emms-player-simple)
> > (require 'emms-player-mpv)
> > (require 'emms-mark)
> > (require 'emms-playing-time)
> > (require 'emms-mode-line)
> >
> > (require 'emms-info-libtag)
> > (setq emms-info-libtag-program-name
> >       "path-to-emms/emms-print-metadata"
> >       emms-info-functions '(emms-info-libtag))
> >
> > (setq emms-seek-seconds 5
> >       emms-player-list '(emms-player-mpv)
> >       emms-source-file-default-directory "~/Music/"
> >       emms-info-asynchronously t)
> >
> > (setq emms-playlist-default-major-mode 'emms-playlist-mode)
> > (emms-mode-line 1)
> > (emms-mode-line-blank)
> > (emms-playing-time 1)
> 
> I paired your config down to the shortest config that will make Emms
> display info in the playlist buffer and the mode-line while loading the
> bits you've chosen. I started Emacs with -q and then loaded this:
> 
> (package-initialize)
> (require 'emms-player-mpv)
> (require 'emms-playing-time)
> (require 'emms-mode-line)
> (require 'emms-info-libtag)
> (emms-all)
> (setq emms-info-libtag-program-name 
> "/home/yrk/devel/emms/src/emms-print-metadata"
>       emms-info-functions '(emms-info-libtag)
>       emms-player-list '(emms-player-mpv)
>       emms-source-file-default-directory "~/Music/")
> 
> That should work fine. The line where we set
> `emms-info-libtag-program-name' can also be done away with if you've
> installed emms-print-metadata into your path.
> 
> 
> -- 
>    "Cut your own wood and it will warm you twice"

Reply via email to