You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto expansion of blocks (for, while, if, function) inside string literals #135
Typing a keyword such as for, if, so on automatically expands to include the respective then, do, end, etc, along with an indent. However this expansion also occurs if these keywords are typed in a string literal. This is almost certainly not intended behavior, and is annoying for purposes such as error messages and command line option help strings.
Replication
In any Lua source file with lua-mode enabled, create a string literal and write for within the quotes. Also, if, while, function. Possibly others.
Desired Behavior
No expansion occurs when typing such keywords in string literals.
Please, accept my apologies for the late reply. I don't think there's a feature to do such expansion in lua-mode itself, please, try achieving this behaviour with emacs -Q -l lua-mode.el invocation which will only load lua-mode library. If it still persists, please let me know the exact version of Emacs & lua-mode library.
Hi, thanks for your response and great package! It was indeed a not-fully-baked Smartparens feature rather than anything added by lua-mode. That package has its tendrils in more places than I'd ever expect.
Activity
immerrr commentedon Jan 5, 2018
Hello!
Please, accept my apologies for the late reply. I don't think there's a feature to do such expansion in lua-mode itself, please, try achieving this behaviour with
emacs -Q -l lua-mode.elinvocation which will only loadlua-modelibrary. If it still persists, please let me know the exact version of Emacs & lua-mode library.Thank you and have a great year!
spruceb commentedon Jan 7, 2018
Hi, thanks for your response and great package! It was indeed a not-fully-baked Smartparens feature rather than anything added by
lua-mode. That package has its tendrils in more places than I'd ever expect.immerrr commentedon Jan 7, 2018
Great. I'm closing this ticket then.