drym-org / symex.el

An intuitive way to edit Lisp symbolic expressions ("symexes") structurally in Emacs
Other
272 stars 23 forks source link

Using the dot (repeat) operator disables scroll margins #86

Open countvajhula opened 1 year ago

countvajhula commented 1 year ago

Symex typically maintains scroll margins so that moving the cursor near the bottom or top of the buffer causes the buffer to scroll to preserve sufficient visibility of the selected expression. It looks like these margins are not preserved after using the . (dot / repeat) operator.

For comparison, using u and C-r preserve them, so maybe there is a missing step like adding advice or something like that. Typically I believe the margins are set upon entering Symex evil state and restored to the original upon leaving the state, so it's also possible that dot triggers a change of state somehow.