(mapatoms
(lambda (symbol)
(when (and (get symbol 'edebug)
- (or (functionp symbol)
- (macrop symbol))
- (edebug--unwrap*-symbol-function
- symbol))
+ (or (functionp symbol) (macrop symbol))
+ (edebug--unwrap*-symbol-function symbol))
(push symbol functions)))
obarray)
- (unless functions
- (user-error "Found no functions to remove instrumentation from"))
- (let ((name
- (completing-read
- (format-prompt "Remove instrumentation from"
- "all functions")
- functions)))
- (if (and name
- (not (equal name "")))
- (list (intern name))
- functions)))))
+ (unless functions (user-error "No instrumented functions"))
+ (let ((names (completing-read-multiple
+ (format-prompt "Remove instrumentation from" "all")
+ functions nil t)))
+ (or (mapcar #'intern names) functions)))))
;; Remove instrumentation.
(dolist (symbol functions)
(when-let ((unwrapped