Wilfred / elisp-refs

semantic code search for emacs lisp
117 stars 18 forks source link

Wrong type argument: number-or-marker-p, nil #25

Closed sarg closed 5 years ago

sarg commented 5 years ago

In Erefs mode when I press RET on Line: or on an empty line the following error occurs:

funcall-interactively: Wrong type argument: number-or-marker-p, nil

The reason is that elisp-refs-visit-match assumes that the text has always properties attached.

(unindent (get-text-property (point) 'elisp-refs-unindented))
(target-offset (+ column-offset unindent))

Maybe this will do the trick:

(target-offset (if unindent (+ column-offset unindent)))
Wilfred commented 5 years ago

Thank you :)