Skip to content

elisp-completion-at-point: args out of range #1251

@basil-conto

Description

@basil-conto

Commit 87c1e4e introduced the following error during in-buffer elisp completion:

  1. $ make plain
  2. (let (x (temp-buffer-sh C-M-i

gives the error

if: Args out of range: "temp-buffer-sh", -21, nil

and the attached backtrace.

What I am trying to complete is the name of the variable temp-buffer-show-function. I cannot reproduce the issue without including a symbol (in this case x) in the let varlist.

Interestingly, bare Emacs sans ivy completes temp-buffer-sh to temp-buffer-window-show, i.e. it mistakes (temp-buffer-sh as starting a function call, rather than a variable's let-binding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions