flutter.el icon indicating copy to clipboard operation
flutter.el copied to clipboard

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

Open zhaozhixu opened this issue 1 year ago • 2 comments

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

zhaozhixu avatar Oct 19 '24 04:10 zhaozhixu

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 avatar Oct 19 '24 04:10 amake

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

amake avatar Oct 19 '24 04:10 amake