fgeller/expand-region.el — comment on commit 4bbf1975f41ad4012408cbb45a9875c9c1273fa6
File:  line 0
By gvol:

Hmm. I usually use `python.el` so I'm probably doing something wrong. Here's what I see:

I have a (top-level) function with a docstring and I start, not in the docstring, but in the body of the function. I expand and it expands to larger and larger blocks, but then skips the function itself and marks the whole buffer. If I remove the docstring it seems to work okay. Other than that I haven't noticed any problems.

How do you think we should handle the differences between `python-mode.el` and `python.el`? Should we move the `add-hook` part to two different `eval-after-loads`? or put the differentiation into the hook itself? I wish python modes in Emacs weren't such a mess.