File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -440,11 +440,15 @@ or disable if already enabled."
440440 (untrace-function sym)
441441 (trace-function sym)))
442442
443+ (defun helpful--trace-1 (sym )
444+ " Toggle tracing for SYM and update the *helpful* buffer."
445+ (helpful--toggle-tracing sym)
446+ (helpful-update))
447+
443448(defun helpful--trace (button )
444449 " Toggle tracing for the current symbol."
445450 (let ((sym (button-get button 'symbol )))
446- (helpful--toggle-tracing sym))
447- (helpful-update))
451+ (helpful--trace-1 sym)))
448452
449453(define-button-type 'helpful-navigate-button
450454 'action #'helpful--navigate
@@ -1165,8 +1169,7 @@ buffer."
11651169 (helpful--ensure)
11661170 (unless helpful--callable-p
11671171 (user-error " Cannot trace a variable" ))
1168- (helpful--toggle-tracing helpful--sym)
1169- (helpful-update))
1172+ (helpful--trace-1 helpful--sym))
11701173
11711174(defun helpful-set-value ()
11721175 (interactive )
You can’t perform that action at this time.
0 commit comments