diff --git a/sideline-load-cost.el b/sideline-load-cost.el index 4a41ea3..cff637a 100644 --- a/sideline-load-cost.el +++ b/sideline-load-cost.el @@ -129,8 +129,8 @@ Optional argument EXT is use to drop-in replace the current extension." (when (search-forward op bol t) (forward-word 1) (when-let* (((<= (point) bol)) - (thing (or (thing-at-point 'string) - (thing-at-point 'symbol))) + (thing (or (ignore-errors (thing-at-point 'string)) + (ignore-errors (thing-at-point 'symbol)))) (thing (if (stringp thing) (sideline--s-replace "\"" "" thing) thing))