Skip to content
Browse files

FUEL: make `fuel-refactor-inline-word` work with hyphenated words

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.
  • Loading branch information...
timor authored and mrjbq7 committed Jun 11, 2019
1 parent 4a7644e commit 13b0da91827403c52a9cc11243407f95e528ef9b
Showing with 1 addition and 1 deletion.
  1. +1 −1 misc/fuel/fuel-refactor.el
@@ -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"))
(kill-word 1)
(kill-sexp 1)
(let ((start (point)))
(insert code)
(save-excursion (font-lock-fontify-region start (point)))

0 comments on commit 13b0da9

Please sign in to comment.
You can’t perform that action at this time.