emms-help
[Top][All Lists]
Advanced

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

[emms-help] Interactively asking a question before overwriting a playlis


From: Yoni Rabkin
Subject: [emms-help] Interactively asking a question before overwriting a playlist
Date: Fri, 29 Aug 2008 14:15:48 +0300
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2.91 (gnu/linux)

The following tiny (2 characters actually) patch would cause
`emms-playlist-save' to interactively ask for confirmation before
overwriting an existing playlist. I would like this feature.

Anyone think this isn't good? If everyone is OK with this I'll commit it
in a few days.

>From 7fc8b467f6f8c1dbabc522d996b583fa12fe7af1 Mon Sep 17 00:00:00 2001
From: Yoni Rabkin <address@hidden>
Date: Fri, 29 Aug 2008 14:10:09 +0300
Subject: [PATCH] Ask for confirmation before overwriting an existing playlist.
Signed-off-by: Yoni Rabkin <address@hidden>
---
 lisp/emms-source-playlist.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/emms-source-playlist.el b/lisp/emms-source-playlist.el
index 35ed254..63ca79b 100644
--- a/lisp/emms-source-playlist.el
+++ b/lisp/emms-source-playlist.el
@@ -139,7 +139,7 @@ The default format is specified by 
`emms-source-playlist-default-format'."
                                     (current-buffer))
                                   (current-buffer))
     (let ((backup-inhibited t))
-      (write-file file))))
+      (write-file file t))))
 
 (defun emms-source-playlist-determine-format (&optional parse-files)
   "Determine the playlist format of the current buffer.
-- 
1.5.2.5

-- 
   "Cut your own wood and it will warm you twice"

reply via email to

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