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

Remove bool casting, and make arg optional #12

Open
duianto opened this issue Feb 20, 2021 · 0 comments
Open

Remove bool casting, and make arg optional #12

duianto opened this issue Feb 20, 2021 · 0 comments

Comments

@duianto
Copy link

duianto commented Feb 20, 2021

The multi-line function has a TODO note:
https://github.com/IvanMalison/multi-line/blob/d5ae863ced0adeb7032ada398005f27a6c669d79/multi-line.el#L227-L234

A possible solution

This seems to make the bool casting obsolete:

(defun multi-line (&optional single-line)
  "Multi-line the statement at point.

When SINGLE-LINE is provided, single-line the statement at point instead."
  (interactive "P")
  (multi-line-execute multi-line-current-strategy single-line))

It also makes the single-line argument optional,
which makes it possible to call (multi-line) without any arguments,
from for example the Eval: (S-M-;) prompt.

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