racer-rust / emacs-racer

Racer support for Emacs
399 stars 48 forks source link

racer-find-definition can't be called non-interactively #117

Closed Hi-Angel closed 5 years ago

Hi-Angel commented 5 years ago

Steps to reproduce

  1. Open test.rs with the following content:

    fn func() {}
    
    fn main() {
        func();
    }
  2. Enable racer-mode

  3. Place caret over func() call inside main, press M-:, type (racer-find-definition), press Enter.

Expected

Point should've jumped to fn func() {} on the 1st line, the same as it would if the command was executed with M-x instead.

Actual

Point doesn't move.