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

beginning/end-of-defun jump to beginning/end of buffer instead of functions. #31

Open
zhaozhixu opened this issue Oct 19, 2024 · 2 comments

Comments

@zhaozhixu
Copy link

Hi!

Thanks for the awesome project!

I use beginning-of-defun (C-M-a) and end-of-defun (C-M-e) frequently to jump to beginning/end of functions. But in flutter mode, they jump to beginning/end of buffers which is inconsistent with emacs's builtin behavior. Could you please look into it?

Thanks!

Emacs version 29.4 on MacOS
flutter.el version 20240823.1231
Flutter version 3.24.3

@amake
Copy link
Owner

amake commented Oct 19, 2024

flutter-mode inherits from comint-mode and doesn't override any relevant functionality—if you use C-h-k you can verify that the keys you mentioned are bound to the functions you mentioned. So this is the built-in behavior.

If you want different behavior then I suggest you need to arrange for that yourself.

@amake
Copy link
Owner

amake commented Oct 19, 2024

beginning/end-of-defun jump to beginning/end of buffer instead of functions.

I just realized from your title: there are no functions in the *Flutter* buffer. Are you talking about dart-mode? If so, that is a different project altogether: https://github.com/emacsorphanage/dart-mode

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

No branches or pull requests

2 participants