Open Wilfred opened 8 years ago
Given the code, where | is point:
(defun foobar (x) |(+ x 1))
emr-show-refactor-menu does not offer extract to let. If I explicitly run M-x emr-el-extract-to-let, I get:
emr-show-refactor-menu
M-x emr-el-extract-to-let
(let () (defun foobar (let ((y (x))) y) (+ x 1)))
Point needs to be inside the form apparently:
(defun foobar (x) (|+ x 1))
This works. This is a gotcha.
Given the code, where | is point:
emr-show-refactor-menu
does not offer extract to let. If I explicitly runM-x emr-el-extract-to-let
, I get: