Skip to content

Commit

Permalink
Ensure emacs-refactor is initialized when opening the refactor menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Jun 29, 2018
1 parent 4441a7f commit ff330b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

## v0.3.7

General:

* Fixed an issue where calling `emr-show-refactor-menu` would say 'no
refactorings available' when emr hadn't been used.

Elisp:

* Fixed an issue where `emr-el-extract-function` was confused by
Expand Down
1 change: 1 addition & 0 deletions emr.el
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ Return a popup item for the refactoring menu if so."
(defun emr-show-refactor-menu ()
"Show the refactor menu at point."
(interactive)
(emr-initialize)
;; Run each factory function and collect the menu items representing
;; available commands.
(-if-let (actions (->> emr:refactor-commands
Expand Down

0 comments on commit ff330b5

Please sign in to comment.