Skip to content

Redefining a function shows the outdated arglist in the status bar #1632

@sdegutis

Description

@sdegutis

Expected behavior

When I redefine a function with a new arglist, the new arglist doesn't show up in the Emacs status bar while inside that function form.

Actual behavior

It's always the first one that was defined.

Steps to reproduce the problem

Type:

(defn foo [a b c])

Then C-c C-e to eval it.

Now type (foo (note the space) and wait for the arglist to show up in the status bar. It shows up fine.

But now go and change the parameters in foo any way you'd like, e.g.:

(defn foo [x y])

And again do C-c C-e to redefine the var.

Now type (foo somewhere again or go back into your first one and press space.

Notice the arglist in the status bar is the old version only.

Environment & Version information

CIDER version information

CIDER 0.11.0 (Bulgaria), nREPL 0.2.12

Emacs version

24.5.1

Operating system

OS X latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions