From 4ca4ae8baf43896dd1c150e355f46e86c847b3e1 Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Thu, 5 Nov 2020 18:51:09 -0500 Subject: * emms-tag-editor.el: --- emms-tag-editor.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emms-tag-editor.el b/emms-tag-editor.el index f9a9f72..ee9b2cb 100644 --- a/emms-tag-editor.el +++ b/emms-tag-editor.el @@ -186,9 +186,13 @@ See also `emms-tag-editor-tag-file' and `emms-tag-editor-tag-ogg'.") Valid tags are given by `emms-tag-editor-tagfile-functions'." (let (args val) (mapc (lambda (tag) + (unless (or (string-prefix-p "-" (cdr tag)) + (string-prefix-p "+" (cdr tag)) + (string-prefix-p "/" (cdr tag))) + (error "Command arguments need prefix in `emms-tag-editor-tagfile-functions'.")) (setq val (emms-track-get track (car tag))) (if (and val (stringp val)) - (setq args (append (list (concat "-" (cdr tag)) val) args)))) + (setq args (append (list (cdr tag) val) args)))) tags) (apply 'call-process program nil (get-buffer-create emms-tag-editor-log-buffer) nil -- cgit v1.2.3