* lisp/progmodes/python.el (python-shell-buffer-substring): Don't
extend the region to the start of the line (bug#39398), but allow
sending the actual region as marked.
\f
* Changes in Specialized Modes and Packages in Emacs 28.1
+** Python mode
+
+*** 'C-c C-r' can now be used on arbitrary regions.
+The command previously extended the start of the region to the start
+of the line, but will now actually send the marked region, as
+documented.
+
** Ruby mode
*** 'ruby-use-smie' is declared obsolete.
coding cookie is added.
4. Wraps indented regions under an \"if True:\" block so the
interpreter evaluates them correctly."
- (let* ((start (save-excursion
- ;; Normalize start to the line beginning position.
- (goto-char start)
- (line-beginning-position)))
- (substring (buffer-substring-no-properties start end))
+ (let* ((substring (buffer-substring-no-properties start end))
(starts-at-point-min-p (save-restriction
(widen)
(= (point-min) start)))