smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

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

Open kisp opened this issue 6 months ago • 2 comments

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

  • smartparens version: 20231024.1804
  • Active major-mode: elixir-mode
  • Smartparens strict mode: nil
  • Emacs version (M-x emacs-version): GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8)
  • Starterkit/Distribution: Vanilla
  • OS: gnu/linux

kisp avatar Jan 23 '24 13:01 kisp

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?

kisp avatar Jan 23 '24 13:01 kisp

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.

Fuco1 avatar Mar 18 '24 10:03 Fuco1