Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing the last character in a result line can crash #3

Open
Wilfred opened this issue Oct 28, 2016 · 1 comment
Open

Accessing the last character in a result line can crash #3

Wilfred opened this issue Oct 28, 2016 · 1 comment

Comments

@Wilfred
Copy link
Owner

Wilfred commented Oct 28, 2016

Traceback:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  +(33 nil)
  (let* ((path (get-text-property (point) (quote elisp-refs-path))) (pos (get-text-property (point) (quote elisp-refs-start-pos))) (unindent (get-text-property (point) (quote elisp-refs-unindented))) (column-offset (current-column)) (target-offset (+ column-offset unindent)) (line-offset -1)) (if (null path) (progn (user-error "No match here"))) (save-excursion (while (equal pos (get-text-property (point) (quote elisp-refs-start-pos))) (forward-line -1) (setq line-offset (1+ line-offset)))) (find-file path) (goto-char pos) (forward-line line-offset) (beginning-of-line) (let ((i 0)) (while (< i target-offset) (if (looking-at "   ") (setq i (+ i tab-width)) (setq i (1+ i))) (forward-char 1))))
  elisp-refs-visit-match()
  funcall-interactively(elisp-refs-visit-match)
  call-interactively(elisp-refs-visit-match nil nil)
  command-execute(elisp-refs-visit-match)

This seems to only occur when the last character in the line is not part of the highlighted sexp, e.g. (searching-for-this-func 1 2))))

@Wilfred
Copy link
Owner Author

Wilfred commented Oct 28, 2016

This is particularly noticeable with elisp-refs-symbol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant