-
Notifications
You must be signed in to change notification settings - Fork 467
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
commentblock in emacs-lisp mode is strange #387
Comments
On further investigation, this seems to be a general problem with yasnippet in lisp-mode: If the return value of a So as a workaround I propose to put a double semicolon in front. I will post a pull request soon. |
quazgar
added a commit
to quazgar/yasnippet-snippets
that referenced
this issue
Dec 11, 2022
The workaround here is to add a double semicolon, iff the start comment is a single semicolon. This also required some fixing of the whitespace calculations. This commit is for issue 387 (AndreaCrotti#387).
See PR #454 |
AndreaCrotti
pushed a commit
that referenced
this issue
Jan 5, 2024
The workaround here is to add a double semicolon, iff the start comment is a single semicolon. This also required some fixing of the whitespace calculations. This commit is for issue 387 (#387).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Observed behaviour
For me, using the
cob
(commentblock
, from the prog-mode section) snippet in elisp mode produces this result:What seems wrong to me
There are lots of whitespaces before the first
;
and it's only a single;
, not as I expected;;
. Opposed to this behaviour,comment-region
prepends double semicolons.What the snippet should do
;;
at the beginning of the line.Discussion
If the current behaviour is as intended, that's fine for me and the issue could be closed.
The text was updated successfully, but these errors were encountered: