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

macroexpand buffer truncates long expansions #290

Closed
bwo opened this issue Feb 26, 2013 · 1 comment
Closed

macroexpand buffer truncates long expansions #290

bwo opened this issue Feb 26, 2013 · 1 comment

Comments

@bwo
Copy link

bwo commented Feb 26, 2013

Suppose you have the macro

(defmacro foo [x]
  `(list ~@(repeat 40 x)))

Using nrepl's macroexpand on (foo [1 2 3 4 5 6 7]) does what you'd expect.

If you change foo's definition to repeat x 100 times, however, macroexpanding the above invocation puts this in the macroexpand buffer:

 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7]
  [1 2 3 4 5 6 7])

It's been truncated from the front.

@bwo
Copy link
Author

bwo commented Feb 26, 2013

oh, duplicate of #253, sorry.

@bwo bwo closed this as completed Feb 26, 2013
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