diff options
| author | Lars Ingebrigtsen | 2021-02-04 18:24:28 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-02-04 18:24:34 +0100 |
| commit | 3bf21f52b653a71801d371fcac0fcc862a95ec32 (patch) | |
| tree | f6a6253751bbdc371b9f955336e31755e033f70d | |
| parent | a304b22bc9f1396cd6958b0a6fc6092437e36d96 (diff) | |
| download | emacs-3bf21f52b653a71801d371fcac0fcc862a95ec32.tar.gz emacs-3bf21f52b653a71801d371fcac0fcc862a95ec32.zip | |
Deactivate region in `C-c C-r' in python-mode
* lisp/progmodes/python.el (python-shell-send-region): Deactivate
mark after executing (bug#28789). This is how this command worked
in Emacs 24, apparently.
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index d6c0a4d1dbf..afb96974b17 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -3273,7 +3273,8 @@ process running; defaults to t when called interactively." | |||
| 3273 | ;; lines have been removed/added. | 3273 | ;; lines have been removed/added. |
| 3274 | (with-current-buffer (process-buffer process) | 3274 | (with-current-buffer (process-buffer process) |
| 3275 | (compilation-forget-errors)) | 3275 | (compilation-forget-errors)) |
| 3276 | (python-shell-send-string string process))) | 3276 | (python-shell-send-string string process) |
| 3277 | (deactivate-mark))) | ||
| 3277 | 3278 | ||
| 3278 | (defun python-shell-send-statement (&optional send-main msg) | 3279 | (defun python-shell-send-statement (&optional send-main msg) |
| 3279 | "Send the statement at point to inferior Python process. | 3280 | "Send the statement at point to inferior Python process. |