Open Wilfred opened 8 years ago
It does work if point is inside the form:
(defun foobar (x)
(let* ((y (|+ x 1)))))
This is because emr-el:form-extent-for-extraction
calls list-at-point
, which gets the enclosing list.
Is this a behaviour that's worth changing, or is just a documentation issue?
i just got going with emr
and found this really confusing, mainly because with non-let refactorings into functions, extracting from outside the form works.
Given the following code, where | is the point:
M-x emr-el-extract-function RET foo RET RET
gives: