From d6f89aaafd2429721ee26a317b90d699c6e03deb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 10 Aug 2018 19:13:31 +0200 Subject: [PATCH] Make doom/copy-backtrace copy the whole backtrace --- core/autoload/debug.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/autoload/debug.el b/core/autoload/debug.el index 47f571ca3..9f61ca392 100644 --- a/core/autoload/debug.el +++ b/core/autoload/debug.el @@ -124,16 +124,13 @@ branch and commit." ;;;###autoload (defun doom/copy-backtrace () - "Copy the first 1000 bytes from the *Backtrace* window into your clipboard for -easy pasting into a bug report or discord." + "Copy the contents of the *Backtrace* window into your clipboard for easy +pasting into a bug report or discord." (interactive) (if-let* ((buf (get-buffer "*Backtrace*"))) (with-current-buffer buf (kill-new - (string-trim - (buffer-substring-no-properties - (point-min) - (min (point-max) 1000))))) + (string-trim (buffer-string)))) (user-error "No backtrace buffer detected")))