mu4e: speedbar: use the correct buffer
This commit is contained in:
@ -72,14 +72,16 @@
|
|||||||
(defun mu4e~speedbar-render-maildir-list ()
|
(defun mu4e~speedbar-render-maildir-list ()
|
||||||
"Insert the list of maildirs in the speedbar."
|
"Insert the list of maildirs in the speedbar."
|
||||||
(interactive)
|
(interactive)
|
||||||
(mapcar (lambda (maildir-name)
|
(when (buffer-live-p speedbar-buffer)
|
||||||
(speedbar-insert-button
|
(with-current-buffer speedbar-buffer
|
||||||
(concat " " maildir-name)
|
(mapcar (lambda (maildir-name)
|
||||||
'mu4e-highlight-face
|
(speedbar-insert-button
|
||||||
'highlight
|
(concat " " maildir-name)
|
||||||
'mu4e~speedbar-maildir
|
'mu4e-highlight-face
|
||||||
maildir-name))
|
'highlight
|
||||||
(mu4e-get-maildirs)))
|
'mu4e~speedbar-maildir
|
||||||
|
maildir-name))
|
||||||
|
(mu4e-get-maildirs)))))
|
||||||
|
|
||||||
(defun mu4e~speedbar-maildir (&optional text token ident)
|
(defun mu4e~speedbar-maildir (&optional text token ident)
|
||||||
"Jump to maildir TOKEN. TEXT and INDENT are not used."
|
"Jump to maildir TOKEN. TEXT and INDENT are not used."
|
||||||
|
|||||||
Reference in New Issue
Block a user