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.
clean-macosx-x86-32
timor 2019-06-11 15:17:35 +02:00 committed by John Benediktsson
parent 4a7644e509
commit 13b0da9182
1 changed files with 1 additions and 1 deletions

View 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)))