@@ -84,7 +84,7 @@ This variable specifies both what was expanded and the expander.")
84
84
(let* ((expansion (cider-macroexpansion expander (cider-last-sexp)))
85
85
(bounds (cons (save-excursion (backward-sexp ) (point )) (point ))))
86
86
(cider-redraw-macroexpansion-buffer
87
- expansion (current-buffer ) (car bounds) (cdr bounds) ( point ) )))
87
+ expansion (current-buffer ) (car bounds) (cdr bounds))))
88
88
89
89
(defun cider-macroexpand-again ()
90
90
" Repeat the last macroexpansion."
@@ -128,21 +128,21 @@ If invoked with a PREFIX argument, use 'macroexpand' instead of
128
128
(buffer-undo-list t ))
129
129
(erase-buffer )
130
130
(insert (format " %s " expansion))
131
- (goto-char (point-min ))
131
+ (goto-char (point-max ))
132
132
(font-lock-fontify-buffer )))
133
133
134
- (defun cider-redraw-macroexpansion-buffer (expansion buffer start end current-point )
134
+ (defun cider-redraw-macroexpansion-buffer (expansion buffer start end )
135
135
" Redraw the macroexpansion with new EXPANSION.
136
136
Text in BUFFER from START to END is replaced with new expansion,
137
- and point is placed at CURRENT-POINT ."
137
+ and point is placed after the expanded form ."
138
138
(with-current-buffer buffer
139
139
(let ((buffer-read-only nil ))
140
140
(goto-char start)
141
141
(delete-region start end)
142
142
(insert (format " %s " expansion))
143
143
(goto-char start)
144
144
(indent-sexp )
145
- (goto-char current-point ))))
145
+ (forward-sexp ))))
146
146
147
147
(defun cider-create-macroexpansion-buffer ()
148
148
" Create a new macroexpansion buffer."
0 commit comments