noctuid / lispyville

lispy + evil = lispyville
GNU General Public License v3.0
315 stars 23 forks source link

When are safe operators enabled by default? #37

Open jellelicht opened 6 years ago

jellelicht commented 6 years ago

Unless I am somehow misunderstanding a major part of lispyville and how it can be used, I am having some issues getting the operators such as safe delete to work properly.

If we have, line-by-line C-M-x'ed:

(require 'evil) ; => evil
(require 'lispyville) ; => lispyville
(evil-mode) ; => t
(lispyville-mode) ; => t

(defun inc (n)
 | (+ 1 n))

With | being the cursor/point in normal mode, pressing D deletes the whole line (including )), leaving us in an inconsistent state:

(defun inc (n)
|

Am I somehow misconfiguring lispyville, or am I misunderstanding what should be happening? Calling e.g. lispyville-delete-whole-line via M-x does lead to a consistent state, where the last ) is kept.

jellelicht commented 6 years ago

Nvm, I figured it out; the last release of evil barely predates a commit (by you even, if I'm not mistaken) that slightly changes evil-define-key*. Sorry for the noise, and thanks for the amazing package!

noctuid commented 6 years ago

Right, I should probably make it more clear in the readme that this package tracks the latest evil.