fix my/unfill-region: add beg and end args

This commit is contained in:
Jason Tian 2024-09-20 13:10:24 +08:00
parent 5228a63c0b
commit 9f39ce6c83

View file

@ -111,10 +111,11 @@ Version 2023-10-18"
(let ((fill-column (point-max)))
(fill-paragraph nil)))
(defun my/unfill-region ()
(interactive)
(defun my/unfill-region (beg end)
"Transform a filled region into a single line from BEG to END."
(interactive "r")
(let ((fill-column (point-max)))
(fill-region (region-beginning) (region-end) nil)))
(fill-region beg end nil)))
;; END: undo fill-paragraph