[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
save-excursion not working for python-shell-send-buffer
From: |
Chen Zhaoyang |
Subject: |
save-excursion not working for python-shell-send-buffer |
Date: |
Tue, 14 Feb 2023 23:56:26 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hello,
After executing (python-shell-send-buffer) my point does not return to
the mark but the beginning of the buffer. I am able to reproduce this
behavior on "emacs -Q" (my emacs is "GNU Emacs 30.0.50 (build 11,
x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of
2023-02-14"). I wrote a wrapper function like this
(defun site/python-shell-send-buffer ()
(interactive)
(save-excursion
(python-shell-send-buffer nil)))
which works as desired (??).
Best,
Chen Zhaoyang
- save-excursion not working for python-shell-send-buffer,
Chen Zhaoyang <=