.emacs-my
changeset 1703 003cda885eeb
parent 1702 52368d6da1d4
child 1704 d5d0c845e7ad
--- a/.emacs-my	Mon Jan 18 00:59:35 2021 +0200
+++ b/.emacs-my	Mon Jan 18 01:12:09 2021 +0200
@@ -3088,8 +3088,11 @@
 (defun my-python/send-paragraph ()
   (interactive)
   (save-excursion
-    (mark-paragraph)
-    (python-shell-send-region (point) (mark))))
+    (let ( end )
+      (forward-paragraph)
+      (setq end (point))
+      (backward-paragraph)
+      (python-shell-send-region (point) end))))
 
 ;; For built-in python.el
 (my--eval-after-load python