]> gitweb.factorcode.org Git - factor.git/blobdiff - misc/fuel/fuel-refactor.el
FUEL: make `fuel-refactor-inline-word` work with hyphenated words
[factor.git] / 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)))