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

lispy-fill does not support filling comments #299

Closed
Wilfred opened this issue Aug 20, 2016 · 2 comments
Closed

lispy-fill does not support filling comments #299

Wilfred opened this issue Aug 20, 2016 · 2 comments

Comments

@Wilfred
Copy link
Contributor

Wilfred commented Aug 20, 2016

Given the text:

;; foo bar

Calling M-q (bound to lispy-fill) gives the following error:

Debugger entered--Lisp error: (wrong-number-of-arguments (lambda (arg &optional skip-prefix-remove) "Fill paragraph at or after point.  Prefix ARG means justify as well." (interactive "*P") (if (not (eq major-mode (quote kotl-mode))) (kfill:funcall (quote fill-paragraph) arg) (save-restriction (if (eq major-mode (quote kotl-mode)) (narrow-to-region 1 (point-max))) (if (and arg (not (symbolp arg))) (setq arg (quote full))) (or skip-prefix-remove (kfill:remove-paragraph-prefix)) (catch (quote done) (if (null fill-prefix) (let ((paragraph-ignore-fill-prefix nil) (comment-multi-line t) (paragraph-start paragraph-start) (paragraph-separate paragraph-separate) fill-prefix) (if (kfill:adapt t) (throw (quote done) (kfill:funcall (quote fill-paragraph) arg))))) (kfill:fallback-fill-paragraph arg skip-prefix-remove))))) 0)
  fill-paragraph()
  (if (or (lispy-left-p) (lispy-right-p)) (let ((lispy-do-fill t)) (lispy--normalize-1)) (fill-paragraph))
  lispy-fill()
  call-interactively(lispy-fill nil nil)
  command-execute(lispy-fill)

This prevents me using lispy to reflow long comments..

@sooheon
Copy link
Contributor

sooheon commented Nov 20, 2016

FWIW, I'm not able to reproduce this, and filling comments is working correctly. Still have this problem?

@Wilfred
Copy link
Contributor Author

Wilfred commented Nov 20, 2016

Hm, I can't reproduce this either. Looking again at the traceback, I've just noticed that the fill-paragraph there is not the built-in function. It's something else!

Googling, it looks like it's the hyperbole package, which I installed in the past but have since removed. I don't think is a lispy issue.

@Wilfred Wilfred closed this as completed Nov 20, 2016
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

2 participants