amake / flutter.el

Flutter tools for Emacs
GNU General Public License v3.0
123 stars 11 forks source link

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

Open zhaozhixu opened 2 weeks ago

zhaozhixu commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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