Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper indenting of code after loop subclause "do" #622

Closed
oreodave opened this issue Oct 17, 2023 · 1 comment
Closed

Improper indenting of code after loop subclause "do" #622

oreodave opened this issue Oct 17, 2023 · 1 comment

Comments

@oreodave
Copy link

Hi all,
Perhaps this is my misunderstanding but sly seems to indent code after the do subclause in a loop weirdly.

(loop for x from 0 to 10
      do
         (format t "~d~%" x))

Should code after a do be indented like this? The collect keyword seems to indent as I expect, for comparison:

(loop for x from 0 to 10
      collect
      (format nil "~d" x))

I'd just like to thank everyone who has worked on this project, it makes common lisp programming a breeze. Thanks in advance!

System details (in case that matters) GNU Emacs 29.1.50 (Development version 2123964ad139 on emacs-29 branch)

SBCL 2.3.8
SLY 1.0.43

@oreodave
Copy link
Author

Found this variable sly-lisp-loop-body-forms-indentation which adjusts the indentation of body forms. By setting this to 0 I get the behavior I want. If I'd just read the source code earlier I could've figured this out pretty quickly lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant