(matlab-shell-run-region): Fix last commit and correctly use

`buffer-substring' again.
This commit is contained in:
davenar 2011-08-09 21:10:38 +00:00
parent 4e27fa2f9f
commit 2c4046efd2

View file

@ -5001,7 +5001,7 @@ This command requires an active MATLAB shell."
(if (> beg end) (let (mid) (setq mid beg beg end end mid)))
(let ((command
(let ((str (concat (buffer-string) "\n")))
(let ((str (concat (buffer-substring beg end) "\n")))
;; Remove comments
(with-temp-buffer
(insert str)