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
Perl mode adds extra curly braces #1344
Comments
Do this happen with |
Yes, I confirmed by loading a Perl script to edit, then doing C-h m:
|
I don't know if this is related, but when editing LaTeX files, typing a double-quote inserts two backquotes and a single-quote: `` '. Disabling smartparens-mode causes it to just insert a double-quote. I like the way "normal" Emacs automatically substitutes LaTeX-quotes and matches them correctly. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Expected behavior
When typing an open curly brace, it should automatically add the closing brace.
Actual behavior
It adds two closing braces.
Steps to reproduce the problem
Edit a Perl script. Type an open curly brace.
Frankly, it would be nice if the additional punctuation looked to see if the closing punctuation was already there before adding it. This is a problem for quotes and parens as well as square brackets and curly braces. The current behavior makes writing new code fast at the expense of making editing existing code harder. I find I edit a lot more code than I write.
This is extremely important! Providing us with a reliable way to reproduce
a problem will expedite its solution.
Environment & Version information
Emacs version
E.g. 24.5 (use M-x emacs-version to check it if unsure)
Operating system
E.g. Fedora 23, OS X 10.11 "El Capitan", Windows 10, etc
The text was updated successfully, but these errors were encountered: