Make doom/copy-backtrace copy the whole backtrace
This commit is contained in:
parent
519330fcb1
commit
d6f89aaafd
1 changed files with 3 additions and 6 deletions
|
@ -124,16 +124,13 @@ branch and commit."
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/copy-backtrace ()
|
(defun doom/copy-backtrace ()
|
||||||
"Copy the first 1000 bytes from the *Backtrace* window into your clipboard for
|
"Copy the contents of the *Backtrace* window into your clipboard for easy
|
||||||
easy pasting into a bug report or discord."
|
pasting into a bug report or discord."
|
||||||
(interactive)
|
(interactive)
|
||||||
(if-let* ((buf (get-buffer "*Backtrace*")))
|
(if-let* ((buf (get-buffer "*Backtrace*")))
|
||||||
(with-current-buffer buf
|
(with-current-buffer buf
|
||||||
(kill-new
|
(kill-new
|
||||||
(string-trim
|
(string-trim (buffer-string))))
|
||||||
(buffer-substring-no-properties
|
|
||||||
(point-min)
|
|
||||||
(min (point-max) 1000)))))
|
|
||||||
(user-error "No backtrace buffer detected")))
|
(user-error "No backtrace buffer detected")))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue