fix(lib): wrong-number-of-args error on doom/info
- Fixes a wrong-number-of-args error, due to outdated interactive spec (#6227). - Fixes a regression (caused by the refactor indcae7187b4
) where the doom-info buffer is initially too short (~3 lines tall) to display all of its contents. Fix: #6227 Amend:dcae7187b4
This commit is contained in:
parent
f6fd2dc000
commit
14ebfc02a5
1 changed files with 18 additions and 16 deletions
|
@ -278,22 +278,24 @@ ready to be pasted in a bug report on github."
|
|||
(defun doom/info ()
|
||||
"Collects some debug information about your Emacs session, formats it and
|
||||
copies it to your clipboard, ready to be pasted into bug reports!"
|
||||
(interactive "P")
|
||||
(with-current-buffer (pop-to-buffer "*doom info*")
|
||||
(setq buffer-read-only t)
|
||||
(with-silent-modifications
|
||||
(erase-buffer)
|
||||
(save-excursion
|
||||
(dolist (spec (cl-remove-if-not #'cdr (doom-info)))
|
||||
(insert! "%-11s %s\n"
|
||||
((car spec)
|
||||
(if (listp (cdr spec))
|
||||
(mapconcat (lambda (x) (format "%s" x))
|
||||
(cdr spec) " ")
|
||||
(cdr spec)))))))
|
||||
(kill-new (buffer-string))
|
||||
(when (y-or-n-p "Your doom-info was copied to the clipboard.\n\nOpen pastebin.com?")
|
||||
(browse-url "https://pastebin.com"))))
|
||||
(interactive)
|
||||
(let ((buffer (get-buffer-create "*doom info*")))
|
||||
(with-current-buffer buffer
|
||||
(setq buffer-read-only t)
|
||||
(with-silent-modifications
|
||||
(erase-buffer)
|
||||
(save-excursion
|
||||
(dolist (spec (cl-remove-if-not #'cdr (doom-info)))
|
||||
(insert! "%-11s %s\n"
|
||||
((car spec)
|
||||
(if (listp (cdr spec))
|
||||
(mapconcat (lambda (x) (format "%s" x))
|
||||
(cdr spec) " ")
|
||||
(cdr spec)))))))
|
||||
(pop-to-buffer buffer)
|
||||
(kill-new (buffer-string))
|
||||
(when (y-or-n-p "Your doom-info was copied to the clipboard.\n\nOpen pastebin.com?")
|
||||
(browse-url "https://pastebin.com")))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue