emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emms-help] Error:


From: William Xu
Subject: Re: [emms-help] Error:
Date: Thu, 9 Feb 2012 21:28:55 +0800

2012/2/9 Marius Hofert <address@hidden>:
>
> C-h v shows:
>
> emms-player-list is a variable defined in `emms.el'.
> Its value is
> (emms-player-mpg321 emms-player-ogg123 emms-player-mplayer-playlist 
> emms-player-mplayer emms-player-vlc)
>
> Original value was nil

OK.  I was wrong here.  The second expression should give t first.

>> If the second expression returns nil, it means `vlc' command wasn't
>> found in PATH.
>
> okay, on the Mac one can call VLC from the command line via
> /Applications/VLC.app/Contents/MacOS/VLC
> I then defined an alias in ~/.bashrc:
> vlc='/Applications/VLC.app/Contents/MacOS/VLC'
>
> I have the following code in ~/.emacs which guarantees that PATH is the same 
> as
> from within the terminal:
>
> ;; see http://lists.gnu.org/archive/html/help-gnu-emacs/2011-11/msg00107.html
> (let ((path (shell-command-to-string ". ~/.profile; echo -n $PATH")))
>  (setenv "PATH" path)
>  (setq exec-path
>        (append
>         (split-string-and-unquote path ":")
>         exec-path)))
>
> I can now call VLC via "vlc" from within M-x shell (Tab-completion won't work
> though since it's an alias) and I checked that via "vlc ~/priv/music/a.mp3"
> which is an existing file.
>
> I did a complete restart. Still, the line (executable-find "vlc") executes to
> "nil" (point after the last ")" and C-x C-e).

I doubt whether aliases could be found via exec-path.

Anyway, how about this?

  (progn
    (setq emms-player-vlc-command-name
          "/Applications/VLC.app/Contents/MacOS/VLC")

    (emms-player-for '(*track* (type . file) (name . "foo.mp3")))
    )


-William



reply via email to

[Prev in Thread] Current Thread [Next in Thread]