Eshell: Require subr-x for string-trim in eshell-append-region-to-command-line
parent
f3820091f0
commit
4392607e8e
|
@ -322,6 +322,7 @@ See `eshell' for the numeric prefix ARG."
|
||||||
;; Misc.
|
;; Misc.
|
||||||
(defun ambrevar/eshell-append-region-to-command-line (begin end)
|
(defun ambrevar/eshell-append-region-to-command-line (begin end)
|
||||||
(interactive "r")
|
(interactive "r")
|
||||||
|
(require 'subr-x) ; For `string-trim'.
|
||||||
(save-mark-and-excursion
|
(save-mark-and-excursion
|
||||||
(let ((string (buffer-substring-no-properties begin end)))
|
(let ((string (buffer-substring-no-properties begin end)))
|
||||||
(setq string (string-trim string))
|
(setq string (string-trim string))
|
||||||
|
|
Loading…
Reference in New Issue