]> gitweb.factorcode.org Git - factor.git/commitdiff
FUEL: make `fuel-refactor-inline-word` work with hyphenated words
authortimor <timor.dd@googlemail.com>
Tue, 11 Jun 2019 13:17:35 +0000 (15:17 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 11 Jun 2019 13:50:31 +0000 (06:50 -0700)
The emacs command `kill-word`, used by `fuel-factor-inline-word` does not
delete the complete word if that contains hyphens.  Using `kill-sexps` instead
exhibits correct behavior.

misc/fuel/fuel-refactor.el

index 441160636ca07d69a145929907e4706f1698dc77..b0522af647160b094a361f43a7df0df7f5a7b531 100644 (file)
@@ -195,7 +195,7 @@ The word's body is put in a new method for the generic."
     (let ((code (fuel-refactor--word-def word)))
       (unless code (error "Word's definition not found"))
       (factor-beginning-of-symbol)
-      (kill-word 1)
+      (kill-sexp 1)
       (let ((start (point)))
         (insert code)
         (save-excursion (font-lock-fontify-region start (point)))