neomacs-project / neomacs

Structural Lisp IDE/browser/computing environment
GNU General Public License v3.0
189 stars 3 forks source link

forward-cut in lisp-mode #76

Open kchanqvq opened 3 days ago

kchanqvq commented 3 days ago

Currently, because in lisp-mode symbol nodes are elements, and selectable-p-aux ban themselves from being selected (only characters inside can be selected), forward-cut only cuts part of symbol and can't really cut to end of list (which is a more intuitive behavior). How we fix this?

kchanqvq commented 3 days ago

aha, I think finding end of line then extract-range can come to rescue.

kchanqvq commented 3 days ago

aha, I think finding end of line then extract-range can come to rescue.

This is still unsatisfactory because intuitively it should cut to end of element (but excluding certain kinds, like symbol nodes in lisp-mode), instead end of line.