dgutov / robe

Code navigation, documentation lookup and completion for Ruby
584 stars 37 forks source link

use not deprecated variable but function to get inf-ruby-buffer #99

Closed aki2o closed 7 years ago

aki2o commented 7 years ago

At present, inf-ruby provides a function to get inf-ruby-buffer as substitute for just variable. It seems this function gets the buffer matches current-buffer. So, it makes we are available robe.el under multiple projects.

dgutov commented 7 years ago

it makes we are available robe.el under multiple projects

Are you sure that's enough? What is your workflow to use it with two projects?

I'd imagine we'd have to make robe-running buffer-local at least.

aki2o commented 7 years ago

it seems this patch works in my environment. I suppose robe-running will be set nil if robe-start under other project directory because inf-ruby-buffer returns nil.