Commit graph

130 commits

Author SHA1 Message Date
2e601eb9dc Change the way songs are inserted in the playlist buffer. 2011-08-29 19:30:38 +09:00
e6da8b0fa7 Temporarily Fix notify system. 2011-08-29 19:30:00 +09:00
1c129c9313 Fix a bug that prevented sending any command. 2011-08-29 19:28:59 +09:00
f82a7a8b01 Fix typo that prevent evaluation 2011-08-28 10:26:09 +09:00
fbd33008cb Bugfix in `empc-mode-line-to-string' 2011-08-27 22:08:33 +09:00
18d96b8a8f If there is no alive process, don't try to send commands but store then into the queue 2011-08-27 22:07:59 +09:00
cd4eabe65f Don't try to send a command if we know it isn't available 2011-08-27 22:07:22 +09:00
48a87e927c Merge commands into a single command_list directly in queue management.
`empc-send-list' is now discarded and replaced by `empc-queue-merge' before
trying to send a command.
2011-08-27 22:04:20 +09:00
b6bf0509e3 Update the TODO file. 2011-08-27 17:42:55 +09:00
0cd8704346 Tentative to fix string formats if some informations are missing. 2011-08-27 17:40:47 +09:00
dd6431a10f When playlist has been changed, fetch only what is new. 2011-08-27 17:31:22 +09:00
4efbc722b5 Fix the mode-line 2011-08-26 19:51:08 +09:00
081c65a639 Update the TODO file. 2011-08-26 19:50:58 +09:00
aecf561c6a Add the possibility to talk to the server synchronously. 2011-08-26 19:49:48 +09:00
9d0d66b9e3 Add facilities to customize format used to display mode-line and songs in playlist. 2011-08-26 11:42:26 +09:00
765bee5074 Clean the code.
discard an unsused function and fix a parameter name to match the comment.
2011-08-25 16:43:45 +09:00
20a31156c9 Update the TODO file. 2011-08-25 16:34:36 +09:00
f8eceba6c6 May now clear the playlist. 2011-08-25 16:33:17 +09:00
6e0762a0a0 Move idle state management directly into the queue push/pop functions. 2011-08-25 16:31:39 +09:00
5671d41659 Directly use empc-object in several functions. 2011-08-25 12:59:37 +09:00
3962b7de8f Rewrite the transfert queue #2/2: rewrite the transfert queue as part of empc.
Add plenty of accessors for empc-object.

  Thanks to those accessors the implementation of empc-object may be changed if
  I find a better idea than a weird tree-like structure.

Use the new queue management.

  Due to what I consider a weird behavior of the original tq, function called
  from the process-filter may now be properly debugged.

  Functions are now called outside any `with-current-buffer' macro so *empc*
  buffer also work as expected.

  It will now be possible to put idle commands directly in queue management.

Fix what was broken by previous commit.

  Every feature should work like before.
2011-08-24 18:36:33 +09:00
730902179e Rewrite the transfert queue #1: Replace several global variables by a single object. 2011-08-23 14:39:03 +09:00
7b65049e50 update the TODO file 2011-08-22 17:42:13 +09:00
7dcf627754 Update the TODO file. 2011-08-22 12:58:50 +09:00
a8f862e0c3 Add a keymap for the empc-playlist-mode and 2 macros to send commands with song id as parameter. 2011-08-19 15:40:34 +09:00
5f881d5a61 Refactor some functions to prepare for a proper empc-playlist-mode. 2011-08-19 15:39:53 +09:00
4676a37073 update the TODO file 2011-08-19 10:29:20 +09:00
96d9ef4bda Pulse when moving the cursor to the currently playing song in *empc* buffer 2011-08-19 10:29:07 +09:00
702624395d Fix the mode-line 2011-08-19 10:28:27 +09:00
e7d4bd426e Create a buffer *empc* containing the current playlist.
The buffer is rewritten when playlist changes and point follows the currently playing song.
2011-08-18 19:57:50 +09:00
0c46d0b8d1 Add simplistic facilities to write in the mode-line various informations. 2011-08-18 19:56:40 +09:00
36d917c633 Echo the error message, if any, in the minibuffer. 2011-08-18 17:14:54 +09:00
64afad8292 update the TODO file. 2011-08-18 17:10:49 +09:00
3726b60b0b Add notification for option changes (repeat, single, etc) 2011-08-16 18:38:12 +09:00
ac17003eeb Modify `empc-echo-song' to be able to be called as a command.
Without argument, echoes the currently playing song.
2011-08-15 19:13:49 +09:00
5e43a7a4f4 Don't release the stream-process pointer just because the client disconnects 2011-08-10 15:47:33 +09:00
85add54a72 Allow the use of command_lists through `empc-send-list'. 2011-08-10 15:46:12 +09:00
79ac4c2a6e Fix an error in `empc-response-get-status' when there is nothing to notify. 2011-08-10 14:35:32 +09:00
3fc46f0b54 Update the TODO file. 2011-08-09 16:50:46 +09:00
25a569d640 string-to-int' is obsolete, so use string-to-number' 2011-08-09 16:47:35 +09:00
33c1a8797a Rewrite the way the status is retrieved.
Compute a diff between `empc-current-status' and the server response to know more easily what has changed.
2011-08-09 16:43:44 +09:00
1819c8b28e Fix comment. 2011-08-09 16:43:13 +09:00
41e1d812ea Keep the stream process in `empc-stream-process' variable.
Check the process is not yet running in `empc-stream-start'.
Rewrite the sentinel for `empc-stream-process' for better management.
2011-08-09 16:39:48 +09:00
c7134bc11d Update the TODO file. 2011-08-09 12:23:28 +09:00
2ecb67957b Update the TODO file. 2011-08-05 15:53:52 +09:00
cb7856fc15 Start the streaming process when receiving an idle interruption.
When the stream is started using another client, empc will still be able to play
the stream, provided it is connected to the server.
2011-08-05 15:44:06 +09:00
d461203139 Revive the `with-updated-status' macro which updates the status before sending the command specified. 2011-08-05 15:32:10 +09:00
92959c5cb5 Add a `\n' at the end of command when sent without argument. 2011-08-05 15:30:50 +09:00
4575a05167 Allow the call of multiple closures when getting the server response.
Each closure is called in turn with the parsed data as argument.
2011-08-05 15:29:10 +09:00
08b12abc1a Code Layout. 2011-08-05 12:43:03 +09:00