(in-package :editor) (defun linewise () b-vim-linewise) (defun exclusive () b-vim-exclusive) (defun inclusive () (not b-vim-exclusive)) (defun (setf linewise) (val) (setf b-vim-linewise val)) (defun (setf exclusive) (val) (setf b-vim-exclusive val)) (defun (setf inclusive) (val) (setf b-vim-exclusive (not val))) (defun just-blanks (start end) "Returns T if the characters from start to end are spaces." (loop for ch across (points-to-string start end) if (not (eql ch #\Space)) do (return nil) finally (return t))) (defun blanks-before (point) (with-point ((bol point :temporary)) (line-start bol) (just-blanks bol point))) (defun blanks-after (point) (with-point ((eol point :temporary)) (line-end eol) (just-blanks point eol)))