Skip to content

Commit cb3c275

Browse files
committed
Fix non-optional optional arguments in forward-logical-sexp
1 parent 0c14631 commit cb3c275

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clojure-mode.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,7 @@ Sexps that don't represent code are ^metadata or #reader.macros."
11911191
This will skip over sexps that don't represent objects, so that ^hints and
11921192
#reader.macros are considered part of the following sexp."
11931193
(interactive "p")
1194+
(unless n (setq n 1))
11941195
(if (< n 0)
11951196
(clojure-backward-logical-sexp (- n))
11961197
(let ((forward-sexp-function nil))
@@ -1206,6 +1207,7 @@ This will skip over sexps that don't represent objects, so that ^hints and
12061207
This will skip over sexps that don't represent objects, so that ^hints and
12071208
#reader.macros are considered part of the following sexp."
12081209
(interactive "p")
1210+
(unless n (setq n 1))
12091211
(if (< n 0)
12101212
(clojure-forward-logical-sexp (- n))
12111213
(let ((forward-sexp-function nil))

0 commit comments

Comments
 (0)