Skip to content
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

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

Open
kisp opened this issue Jan 23, 2024 · 2 comments

Comments

@kisp
Copy link

kisp commented Jan 23, 2024

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
Copy link
Author

kisp commented Jan 23, 2024

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
Copy link
Owner

Fuco1 commented Mar 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants