summaryrefslogtreecommitdiff
path: root/cider-stacktrace.el
diff options
context:
space:
mode:
authorMichael Griffiths <mikey@cich.li>2015-03-15 12:35:39 +0000
committerMichael Griffiths <mikey@cich.li>2015-03-15 21:06:17 +0000
commit80d1c0820a12d0d6eef1a97567fce069abe4d5e8 (patch)
treeff89f4de72e554ec7d91d0dd5a272c648ef5312a /cider-stacktrace.el
parentda652f73136c8dbf5d3e0dc95ae497baabeaf3c7 (diff)
Fix style
Diffstat (limited to 'cider-stacktrace.el')
-rw-r--r--cider-stacktrace.el15
1 files changed, 7 insertions, 8 deletions
diff --git a/cider-stacktrace.el b/cider-stacktrace.el
index 9e8df44c..b5101860 100644
--- a/cider-stacktrace.el
+++ b/cider-stacktrace.el
@@ -193,7 +193,7 @@ Find buttons with a 'filter property; if filter is a member of FILTERS, or
if filter is nil ('show all') and the argument list is non-nil, fontify the
button as disabled. Upon finding text with a 'hidden-count property, stop
searching and update the hidden count text."
- (with-current-buffer (get-buffer cider-error-buffer)
+ (with-current-buffer cider-error-buffer
(save-excursion
(goto-char (point-min))
(let ((inhibit-read-only t)
@@ -223,7 +223,7 @@ searching and update the hidden count text."
Update `cider-stacktrace-hidden-frame-count' and indicate filters applied.
Currently collapsed stacktraces are ignored, and do not contribute to the
hidden count."
- (with-current-buffer (get-buffer cider-error-buffer)
+ (with-current-buffer cider-error-buffer
(save-excursion
(goto-char (point-min))
(let ((inhibit-read-only t)
@@ -240,7 +240,7 @@ hidden count."
(defun cider-stacktrace-apply-cause-visibility ()
"Apply `cider-stacktrace-cause-visibility' to causes and reapply filters."
- (with-current-buffer (get-buffer cider-error-buffer)
+ (with-current-buffer cider-error-buffer
(save-excursion
(goto-char (point-min))
(cl-flet ((next-detail (end)
@@ -270,18 +270,17 @@ hidden count."
(defun cider-stacktrace-previous-cause ()
"Move point to the previous exception cause, if one exists."
(interactive)
- (with-current-buffer (get-buffer cider-error-buffer)
+ (with-current-buffer cider-error-buffer
(-when-let (pos (previous-single-property-change (point) 'cause))
(goto-char pos))))
(defun cider-stacktrace-next-cause ()
"Move point to the next exception cause, if one exists."
(interactive)
- (with-current-buffer (get-buffer cider-error-buffer)
+ (with-current-buffer cider-error-buffer
(-when-let (pos (next-single-property-change (point) 'cause))
(goto-char pos))))
-
(defun cider-stacktrace-cycle-cause (num &optional level)
"Update element NUM of `cider-stacktrace-cause-visibility', optionally to LEVEL.
If LEVEL is not specified, its current value is incremented. When it reaches 3,
@@ -293,7 +292,7 @@ it wraps to 0."
(defun cider-stacktrace-cycle-all-causes ()
"Cycle the visibility of all exception causes."
(interactive)
- (with-current-buffer (get-buffer cider-error-buffer)
+ (with-current-buffer cider-error-buffer
(save-excursion
;; Find nearest cause.
(unless (get-text-property (point) 'cause)
@@ -310,7 +309,7 @@ it wraps to 0."
(defun cider-stacktrace-cycle-current-cause ()
"Cycle the visibility of current exception at point, if any."
(interactive)
- (with-current-buffer (get-buffer cider-error-buffer)
+ (with-current-buffer cider-error-buffer
(-when-let (num (get-text-property (point) 'cause))
(cider-stacktrace-cycle-cause num))))