Skip to content

Commit cda1cea

Browse files
author
John Louis Walker
committed
Fix interactive command usage.
Refactor previous-line, goto-line.
1 parent a7b5c75 commit cda1cea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

typed-clojure-mode.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,11 @@
136136
'action
137137
(lambda (y)
138138
(switch-to-buffer cb)
139-
(goto-line line)
139+
(forward-line (- line (line-number-at-pos)))
140140
(move-to-column column)))
141141
(insert ") ")
142142
(insert (format "%s\n" msg))
143-
(insert (format "in: %s\n\n" form))
144-
))
143+
(insert (format "in: %s\n\n" form))))
145144
rd)))))
146145
'()
147146
'()
@@ -174,7 +173,7 @@
174173
(progn
175174
(beginning-of-defun)
176175
(insert "\n")
177-
(previous-line)
176+
(forward-line -1)
178177
(insert (format "(%sann " (typed-clojure-lowest-ns 'ann)))
179178
(insert (concat p " " (if (= 0 (length t)) "Any" t) ")"))
180179
())

0 commit comments

Comments
 (0)