Commit graph

22 commits

Author SHA1 Message Date
Tom Hunt 66d672e2d3 Fix bug with dangling timers
In certain cases, usually around loss of connection to the network, it
was possible for the MPD connection to be dropped while *mpd-timer*
was still active and scheduled. This led to mpd-ping being called
on the timer every *mpd-timeout* seconds, and uselessly popping up an
error message.

This fixes that bug by replacing the simple mpd-ping call in the timer
with a lambda that checks for *mpd-socket* and, if not connected,
cancels the timer. It also makes mpd-disconnect cancel the timer
outside the with-mpd-connection form, which means that in the case of
a dangling timer mpd-disconnect will still cancel it.
2022-07-13 11:58:37 -06:00
Tom Hunt b33f01a2f1 Show new volume level in volume-up and volume-down commands 2022-07-13 11:58:37 -06:00
Tom Hunt d34aab0426 Fixed crash with cuefile in playlist
If the playlist contains entries from a cue file, then the file entry
is of the form path/to/file.cue/track0001, which means that the last
dot in the path is before the last slash, which make subseq crash.
2021-02-07 00:13:33 -07:00
Tom Hunt 668c4098a3 Formatting fixes 2021-02-07 00:07:22 -07:00
xstrtok b2d61c881e mpd: fix choice in playlist
choice → (car choice) to use in position.
2020-04-04 14:50:43 +03:00
cipher 6bfba6bdb5 mpd: replace deprecated functions
menu-state-selected and menu-state-table removed in
commit 4c207ec1ad12ed6208c7e98ef4ed40db04efe4ba.
2020-03-31 20:56:34 +03:00
David Bjergaard d61571e77a Added meaningful descriptions to all non-documented modules 2018-03-15 22:34:26 -04:00
Mykola Nikishov f791ddd77f Update URL to MPD protocol's documentation 2017-01-08 00:26:02 +02:00
Javier Olaechea 3982422cdf Use ADD-SCREEN-MODE-LINE-FORMATTER 2016-09-29 15:16:15 -05:00
Joram Schrijver e905d28c20 Fix duplicate keybinding in the MPD keymap
"S" was first bound to MPD-CURRENT-SONG and then to *MPD-SEARCH-MAP*. As
a result only *MPD-SEARCH-MAP* was accessible. The key "i" was still
free, so we bind that to MPD-CURRENT-SONG instead.

Fixes #46
2016-01-25 17:34:15 +01:00
David Bjergaard c8a700a93b License updates 2015-10-30 15:01:20 -04:00
Tom Hunt 64d0b4d9f8 Rectified whitespace 2015-04-20 12:21:54 -06:00
Tom Hunt 80003e101c mpd-get-xfade no longer crashes on missing input 2015-04-19 20:28:12 -06:00
Tom Hunt a4a79afd6f mpd-browse-database now supports playlists in the file tree 2015-04-19 19:15:51 -06:00
Tom Hunt 29fc69305f A bunch of miscellaneous fixes and new features 2015-04-17 23:47:21 -06:00
Joram Schrijver 46d127352f Don't bind *MENU-MAP*, pass keymap as an argument
This also removes the need to define bindings for navigating and
aborting. I kept the "j" and "k" bindings in place, because they don't
exist by default.
2014-06-04 00:04:35 +02:00
Joram Schrijver ac948761dc Fix warnings in MPD module 2014-06-03 21:13:52 +02:00
Russell Sim 0bafa0e7b5 Fix MPD adds missing macro from stumpwm
This macro was copied over from stumpwm,  it seemed smarter than
exporting the symbol.
2014-03-25 22:44:26 +11:00
David Bjergaard b4fe2e7de4 Updated readme 2014-03-16 14:51:42 -04:00
David Bjergaard 88f4c1618a Adding all the READMEs as org-mode files 2014-03-16 14:44:06 -04:00
David Bjergaard 8110201ed7 Removing *-src.lisp files which were artifacts from porting the systems to asdf 2014-03-16 14:09:17 -04:00
David Bjergaard f688f3ddae Adding initial packages 2014-03-01 23:05:30 -05:00