From 303055e04a5556dc412e69189d6985b917555ed1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 4 Jul 2006 15:34:00 +0000 Subject: browser: indent albums, don't propertize indent darcs-hash:20060704153422-4e3e3-ebb8cf0b25fc1599729c43675016956551388ea4.gz --- emms-browser.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'emms-browser.el') diff --git a/emms-browser.el b/emms-browser.el index c6c98d0..5476366 100644 --- a/emms-browser.el +++ b/emms-browser.el @@ -1215,7 +1215,7 @@ included." ;; FIXME: make this nicer (defun emms-browser-year-and-album-fmt (bdata fmt) (concat - "%cS" + "%i%cS" (let ((year (emms-browser-format-elem fmt "y"))) (if (and year (not (string= year "0"))) "(%y) " @@ -1224,7 +1224,7 @@ included." (defun emms-browser-year-and-album-fmt-med (bdata fmt) (concat - "%cM" + "%i%cM" (let ((year (emms-browser-format-elem fmt "y"))) (if (and year (not (string= year "0"))) "(%y) " @@ -1326,8 +1326,12 @@ If > album level, most of the track data will not make sense." (insert format) (goto-char (point-min)) (let ((start (point-min))) + ;; jump over any image (when (re-search-forward "%c[SML]" nil t) (setq start (point))) + ;; jump over the indent + (when (re-search-forward "%i" nil t) + (setq start (point))) (add-text-properties start (point-max) (list 'face face))) (buffer-string))) -- cgit v1.2.3