Skip to content

Commit

Permalink
Avoid recursive load when loading elpy
Browse files Browse the repository at this point in the history
  • Loading branch information
galaunay committed Nov 24, 2019
1 parent 6500cd2 commit f64f8e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elpy-rpc.el
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ for example), set this to the full interpreter path."
;; Make sure there is no obsolete rpc running
:set (lambda (var val) ;
(set-default var val)
(when (fboundp 'elpy-rpc-restart)
(when (and (fboundp 'elpy-rpc-restart)
(not (autoloadp #'elpy-rpc-restart)))
(elpy-rpc-restart)))
:group 'elpy)

Expand Down

0 comments on commit f64f8e7

Please sign in to comment.