New patches: [refinements-and-docs-for-emms-history.dpatch Tassilo Horn **20070815080114 This path makes some refinements in emms-history.el: - Start playback after `emms-history-load' only if `emms-history-start-playing' is non-nil. - Added customization group emms-history - defvar -> defcustom - better docstrings and commentary - Added Info docs. (Node "Persistent Playlists") ] { hunk ./emms-history.el 1 -;;; emms-history.el -- save playlist when exit emacs +;;; emms-history.el -- save all playlists when exiting emacs hunk ./emms-history.el 25 -;; Save playlists when exit emacs. -;; Next time use M-x emms-history-load to load saved playlist +;; Saves all playlists when you close emacs. When you start it up again use +;; M-x emms-history-load to restore all saved playlists. hunk ./emms-history.el 28 -;; Put this file into your load-path and the following into your ~/.emacs: +;; To use it put the following into your ~/.emacs: +;; hunk ./emms-history.el 31 +;; +;; If all playlists should be restored on startup add this, too: +;; +;; (emms-history-load) hunk ./emms-history.el 38 -(provide 'emms-history) hunk ./emms-history.el 42 -(defvar emms-history-file "~/.emacs.d/.emms-history" - "File to save playlists") +(defgroup emms-history nil + "Saving and restoring all playlists when closing/restarting +Emacs." + :prefix "emms-history-" + :group 'emms) + +(defcustom emms-history-file "~/.emacs.d/emms-history" + "The file to save playlists in." + :type 'string + :group 'emms-history) + +(defcustom emms-history-start-playing nil + "If non-nil emms starts playing the current track after +`emms-history-load' was invoked." + :type 'boolean + :group 'emms-history) hunk ./emms-history.el 60 - "Save all playlists that open in this emacs session when exit. Use -`emms-history-load' to load saved playlists." + "Save all playlists that are open in this Emacs session." hunk ./emms-history.el 100 + "Restore all playlists in `emms-history-file'." hunk ./emms-history.el 121 - (emms-start)))))) + (when emms-history-start-playing + (emms-start))))))) hunk ./emms-history.el 124 +(provide 'emms-history) hunk ./emms.texinfo 71 -* The Browser:: Advanced metadata browsing. -* Sorting Playlists:: Sorting the order of the tracks. -* Editing Tracks:: Editing track information from within Emms. -* Emms Mode Line:: Emms information on the mode line. -* Music Player Daemon:: Interface to Music Player Daemon. -* Streaming Audio:: Interface to streaming audio. -* Lyrics:: Displaying lyrics synchronously. -* Volume:: Changing the volume. -* Last.fm:: Interact with http://www.last.fm's services. -* Extending Emms:: How to define new players and modules. +* The Browser:: Advanced metadata browsing. +* Sorting Playlists:: Sorting the order of the tracks. +* Persistent Playlists:: Restoring playlists on emacs startup. +* Editing Tracks:: Editing track information from within Emms. +* Emms Mode Line:: Emms information on the mode line. +* Music Player Daemon:: Interface to Music Player Daemon. +* Streaming Audio:: Interface to streaming audio. +* Lyrics:: Displaying lyrics synchronously. +* Volume:: Changing the volume. +* Last.fm:: Interact with http://www.last.fm's services. +* Extending Emms:: How to define new players and modules. hunk ./emms.texinfo 1703 address@hidden Persistent Playlists address@hidden Persistent Playlists + +The Emms module @file{emms-history.el} makes playlists persistent over +emacs sessions. To make use of this feature put this into your +~/.emacs. + address@hidden +(require 'emms-history) address@hidden lisp + +When you kill emacs all playlists will be saved in the file given by the +variable: + address@hidden emms-history-file +The file to save playlists in. It defaults to +"~/.emacs.d/emms-history". address@hidden defopt + +After you started up emacs again, you can restore all saved playlists +with this function. + address@hidden emms-history-load +Restore all playlists in `emms-history-file'. address@hidden defun + +If that should be done automatically on each startup, put these lines +into your ~/.emacs. + address@hidden +(require 'emms-history) +(emms-history-load) address@hidden lisp + +Normally @code{emms-history} only restores playlists. If you want it to +start playback afterwards, you can tweak this variable. + address@hidden emms-history-start-playing +If non-nil emms starts playing the current track after +`emms-history-load' was invoked. The default value is nil. address@hidden defopt + } Context: [emms-score.el: change score-file to something more sane address@hidden ~/.emms can be an EMMS config file, whereas ~/.emacs.d/ is already used to store the stream bookmarks file, so use it for the score file too. ] [make-S-prefix-key-for-sorting-functions.dpatch Tassilo Horn **20070802200758] [Fix compiler warning in emms-setup Michael Olson **20070723023532] [emms-playlist-limit: Use standard enable/disable/toggle interface Michael Olson **20070723023452] [emms-streams: New option emms-stream-repeat-p Michael Olson **20070723020304 Instead of assuming that everyone will want to automatically repeat a streamlist if it runs out of tracks, make this controlled by the `emms-stream-repeat-p' option, which defaults to nil. ] [emms-player-mpd: Fix bug with selecting an individual URL track to play from a streamlist Michael Olson **20070723015956] [emms-player-mpd: Make callback arg for emms-player-mpd-sync-from-emms optional Michael Olson **20070723015722] [emms-playlist-sort.el: Bind "s s" to emms-playlist-sort-by-score. William Xu **20070719065003] [emms-setup.el: Enable emms-score in emms-devel. William Xu **20070717131538] [emms-lyrics.el: Set default value for emms-lyrics-dir to ~/music/lyrics. William Xu **20070717100946] [emms-playlist-sort.el: Remove emms-playlist-sort-prefix to make the William Xu **20070717095454 codes more clean. And steal "s" prefix key from `emms-playlist-mode'. (An alternative for emms-playlist-mode could be "v", same as XMMS) ] [emms-playlist-limit.el: (define-emms-playlist-limit) Fix prompt string bug. William Xu **20070717082536] [make-number-of-secs-to-seek-configurable.dpatch Tassilo Horn **20070712062052 Patch sent by "Alfred M. Szmidt" in on the emms-users list (with slight modifications). ] [Avoid even the most remote possibility of a conflict with color-theme.el and its very bad replace-in-string function Michael Olson **20070712211444] [emms-playlist-limit.el: Add missing line: (define-emms-playlist-limit info-title). William Xu **20070711071022] [emms-playlist-limit.el: Minor updates. William Xu **20070709103714] [emms-playlist-limit.el: Update Copyright to GPLv3. William Xu **20070708140012] [emms-playlist-sort.el: Minor updates. William Xu **20070708120050] [emms-playlist-limit.el: Redefine functions emms-playlist-limit-to-* with William Xu **20070708115907 macro: define-emms-playlist-limit. ] [emms-playlist-limit.el: Add default value based on track at point for William Xu **20070708040809 emms-playlist-limit-to-*. ] [New file: emms-playlist-limit.el. And minor updates to emms-playlist-sort. William Xu **20070705160221] [emms-player-mplayer.el: Add "eng.srt", "chs.srt", "cht.srt" to William Xu **20070630124728 emms-player-mplayer-subtitle-extensions. ] [Updated NEWS for post-3.0 address@hidden [TAG 3.0 address@hidden Patch bundle hash: 4e345855d9219ae6252dfd3f9b2ae6712474f449