Completion tables are not supposed to signal errors:
emacs -q
M-x semantic-mode
; visit a file supported by semantic, such as a C file
; put cursor in a blank space
M-x completion-at-point
It will error with: "Nothing to complete"
(semantic-analyze-possible-completions): Return nil instead of
signaling errors.
context
(semantic-analyze-current-context context)))
(ans (if (not context)
- (error "Nothing to complete")
- (:override))))
+ (when (called-interactively-p 'any)
+ (error "Nothing to complete"))
+ (with-demoted-errors "%S"
+ (:override)))))
;; If interactive, display them.
(when (called-interactively-p 'any)
(with-output-to-temp-buffer "*Possible Completions*"