Fix display of recent bookmarks without filename
This commit is contained in:
parent
552fb1e1a6
commit
0e416290c4
|
@ -577,15 +577,18 @@ border."
|
|||
(insert list-display-name)
|
||||
(mapc (lambda (el)
|
||||
(insert "\n ")
|
||||
(widget-create 'push-button
|
||||
:action `(lambda (&rest ignore) (bookmark-jump ,el))
|
||||
:mouse-face 'highlight
|
||||
:follow-link "\C-m"
|
||||
:button-prefix ""
|
||||
:button-suffix ""
|
||||
:format "%[%t%]"
|
||||
(format "%s - %s" el (abbreviate-file-name
|
||||
(bookmark-get-filename el)))))
|
||||
(let ((filename (bookmark-get-filename el)))
|
||||
(widget-create 'push-button
|
||||
:action `(lambda (&rest ignore) (bookmark-jump ,el))
|
||||
:mouse-face 'highlight
|
||||
:follow-link "\C-m"
|
||||
:button-prefix ""
|
||||
:button-suffix ""
|
||||
:format "%[%t%]"
|
||||
(if filename
|
||||
(format "%s - %s"
|
||||
el (abbreviate-file-name filename))
|
||||
(format "%s" el)))))
|
||||
list)))
|
||||
|
||||
(defun spacemacs-buffer//get-org-items (types)
|
||||
|
|
Loading…
Reference in New Issue