* lisp/register.el (register-preview): Ignore elements that are
empty (bug#37155).
nil
(with-current-buffer standard-output
(setq cursor-in-non-selected-windows nil)
- (insert (mapconcat register-preview-function register-alist ""))))))
+ (mapc (lambda (elem)
+ (when (get-register (car elem))
+ (insert (funcall register-preview-function elem))))
+ register-alist)))))
(defun register-read-with-preview (prompt)
"Read and return a register name, possibly showing existing registers.