Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.82k stars 194 forks source link

Quote and backquote pair is inserted in Lisp Interaction mode with strict mode #1080

Closed irigone closed 3 years ago

irigone commented 3 years ago

Expected behavior

Typing ` or ' will insert one ` or '

Actual behavior

Typing ` or ' inserts `` and ''

Steps to reproduce the problem

  1. Start Emacs
  2. Switch to *scratch* buffer
  3. Enable smartparens-strict-mode
  4. Type a backquote (`) or a quote (')

Environment & version information

In recent enough smartparens you can call M-x sp-describe-system to generate this report. Please fill manually what we could not detect automatically. Edit the output as you see fit to protect your privacy.

irigone commented 3 years ago

Yes, I tested that with -Q and the bug was there

andreyorst commented 3 years ago

Have you required smartparens-config module?

(require 'smartparens-config)
irigone commented 3 years ago

I'm sorry for bothering you...

Fuco1 commented 3 years ago

Hi Veronika, no worries! I take it your problem was solved?

I personally find the smartparens-config thing confusing, but in the past a lot of people were angry about the defaults "being forced on them". With Emacs it's really hard to "unload" settings, so an opt-out strategy isn't/wasn't really possible.

Considering it's 2021 and a lot of things changed since 2012, maybe loading this eagerly could be the new default and some code wrapping the entire module with a defcustom check could be a solution for an opt-out.