emms-help
[Top][All Lists]
Advanced

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

A question of " " added by emms-browser-format-line


From: tumashu
Subject: A question of " " added by emms-browser-format-line
Date: Mon, 2 Nov 2020 08:55:12 +0800 (CST)

hello:

Is the below " " *only* used by cover? is it possible add a custom variable to
let user control to add it or not when user do not use cover?

------------------------------------------------------------
(defun emms-browser-format-line (bdata &optional target)
  "Return a propertized string to be inserted in the buffer."
  ...

  ;; give tracks a 'boost' if they're not top-level
  ;; (covers take up an extra space)
  (when (and (eq type 'info-title)
             (not (string= indent "")))
    (setq str (concat " " str)))

  ...
  str)
------------------------------------------------------------

I want to full control the indent of track with the below config,
but the above " " make work hark.

-----------------------------------------------------------
(setq emms-browser-playlist-info-title-format     " ♪ %n")

(setq emms-track-description-function
      #'eh-emms-track-simple-description)

(defun eh-emms-track-simple-description (track)
  (concat " ♪ " (emms-track-simple-description)))
-----------------------------------------------------------


reply via email to

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