@@ -549,7 +549,7 @@ replacement for `cljr-expand-let`."
549
549
; ; If we are now precisely at the beginning of a defun, make sure
550
550
; ; beginning-of-defun finds that one rather than the previous one.
551
551
(or (eobp ) (forward-char 1 ))
552
- (beginning-of-defun )
552
+ (beginning-of-defun-raw )
553
553
; ; Make sure we are really inside the defun found, not after it.
554
554
(when (and (looking-at " \\ s(" )
555
555
(progn (end-of-defun )
@@ -1188,7 +1188,7 @@ Note that this means that there is no guarantee of proper font
1188
1188
locking in def* forms that are not at top level."
1189
1189
(goto-char point)
1190
1190
(ignore-errors
1191
- (beginning-of-defun ))
1191
+ (beginning-of-defun-raw ))
1192
1192
1193
1193
(let ((beg-def (point )))
1194
1194
(when (and (not (= point beg-def))
@@ -2217,7 +2217,7 @@ renaming a namespace."
2217
2217
Returns a list pair, e.g. (\" defn\" \" abc\" ) or (\" deftest\" \" some-test\" )."
2218
2218
(save-excursion
2219
2219
(unless (looking-at clojure-def-type-and-name-regex)
2220
- (beginning-of-defun ))
2220
+ (beginning-of-defun-raw ))
2221
2221
(when (search-forward-regexp clojure-def-type-and-name-regex nil t )
2222
2222
(list (match-string-no-properties 1 )
2223
2223
(match-string-no-properties 2 )))))
@@ -2274,7 +2274,7 @@ This will skip over sexps that don't represent objects, so that ^hints and
2274
2274
" Return truthy if the first form matches FIRST-FORM."
2275
2275
(condition-case nil
2276
2276
(save-excursion
2277
- (beginning-of-defun )
2277
+ (beginning-of-defun-raw )
2278
2278
(forward-char 1 )
2279
2279
(clojure-forward-logical-sexp 1 )
2280
2280
(clojure-backward-logical-sexp 1 )
@@ -2332,20 +2332,20 @@ many times."
2332
2332
(save-match-data
2333
2333
(let ((original-position (point ))
2334
2334
clojure-comment-end)
2335
- (beginning-of-defun )
2335
+ (beginning-of-defun-raw )
2336
2336
(end-of-defun )
2337
2337
(setq clojure-comment-end (point ))
2338
- (beginning-of-defun )
2338
+ (beginning-of-defun-raw )
2339
2339
(forward-char 1 ) ; ; skip paren so we start at comment
2340
2340
(clojure-forward-logical-sexp) ; ; skip past the comment form itself
2341
2341
(if-let ((sexp-start (clojure-find-first (lambda (beg-pos )
2342
2342
(< beg-pos original-position))
2343
2343
(clojure-sexp-starts-until-position
2344
2344
clojure-comment-end))))
2345
2345
(progn (goto-char sexp-start) t )
2346
- (beginning-of-defun n))))
2347
- (scan-error (beginning-of-defun n)))
2348
- (beginning-of-defun n))))
2346
+ (beginning-of-defun-raw n))))
2347
+ (scan-error (beginning-of-defun-raw n)))
2348
+ (beginning-of-defun-raw n))))
2349
2349
2350
2350
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2351
2351
; ;
@@ -2467,7 +2467,7 @@ With universal argument \\[universal-argument], fully unwind thread."
2467
2467
(n) (1 )))
2468
2468
(save-excursion
2469
2469
(let ((limit (save-excursion
2470
- (beginning-of-defun )
2470
+ (beginning-of-defun-raw )
2471
2471
(point ))))
2472
2472
(ignore-errors
2473
2473
(when (looking-at " (" )
@@ -2997,7 +2997,7 @@ END marks the end of the fn expression"
2997
2997
(goto-char beg))
2998
2998
(if (or (looking-at-p " #(" )
2999
2999
(ignore-errors (forward-char 1 ))
3000
- (re-search-backward " #(" (save-excursion (beginning-of-defun ) (point )) 'noerror ))
3000
+ (re-search-backward " #(" (save-excursion (beginning-of-defun-raw ) ( backward-char ) (point )) 'noerror ))
3001
3001
(let* ((end (save-excursion (clojure-forward-logical-sexp) (point-marker )))
3002
3002
(argspec (clojure--gather-fn-literal-args))
3003
3003
(arity (car argspec))
@@ -3221,7 +3221,7 @@ With universal argument \\[universal-argument], act on the \"top-level\" form."
3221
3221
" Toggle the #_ ignore reader form for the \" top-level\" form at point."
3222
3222
(interactive )
3223
3223
(save-excursion
3224
- (beginning-of-defun )
3224
+ (beginning-of-defun-raw )
3225
3225
(clojure--toggle-ignore-next-sexp)))
3226
3226
3227
3227
0 commit comments