Skip to content

fix(yas-setup): accessing python mode functions before loaded - #2069

Open
DavidVujic wants to merge 1 commit into
jorgenschaefer:masterfrom
DavidVujic:fix-yas-setup-python-mode
Open

DavidVujic wants to merge 1 commit into
jorgenschaefer:masterfrom
DavidVujic:fix-yas-setup-python-mode

Conversation

@DavidVujic

@DavidVujic DavidVujic commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

PR Summary

Fixing an issue that happened when updating to the latest emacs version, but I am not sure if that is the reason.

Errors happening when starting emacs:

⛔ Warning (native-compiler): ~/.emacs.d/elpa/elpy-20260715.1747/snippets/python-mode/.yas-setup.el:22:13: Warning: the function ‘python-nav-beginning-of-defun’ is not known to be defined.
⛔ Warning (native-compiler): ~/.emacs.d/elpa/elpy-20260715.1747/snippets/python-mode/.yas-setup.el:19:25: Warning: the function ‘python-info-current-defun’ is not known to be defined.

I think that the solution is to make sure python-mode is loaded properly, and have added the require statement at the top of the yas-snippet.el.

PR checklist

Please make sure that the following things have been addressed (and check the relevant checkboxes):

  • Commits respect our guidelines
  • Tests are passing properly (see here on how to run Elpy's tests)

For new features only:

  • Tests has been added to cover the change
  • The documentation has been updated

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 91.379%. remained the same — DavidVujic:fix-yas-setup-python-mode into jorgenschaefer:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants