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 195 forks source link

Typing 'defp' in Elixir mode results in 'defpend' clunched together, inconsistent with the behavior of 'def' followed by SPC #1184

Open kisp opened 8 months ago

kisp commented 8 months ago

Expected behavior

When I type 'defp' and then type SPC I want to see

defp | do
end

Actual behavior

When I type 'defp' I immediately see (without needing to type SPC)

defpend

Steps to reproduce the problem

See above

Backtraces if necessary (M-x toggle-debug-on-error)

Environment & version information

kisp commented 8 months ago

Note: I am not 100% sure that this behavior is really caused by smartparens. Could you help me and tell me what I need to do to find out?

Fuco1 commented 6 months ago

The code for def, defp, defmodule and defimpl seems to be the same in smartparens, and all of them work except for defp. I think it might be coming from somewhere else indeed, but can't say for sure.