all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* save-excursion not working for python-shell-send-buffer
@ 2023-02-15  5:56 Chen Zhaoyang
  2023-02-15 13:24 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Zhaoyang @ 2023-02-15  5:56 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-15 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-15  5:56 save-excursion not working for python-shell-send-buffer Chen Zhaoyang
2023-02-15 13:24 ` Eli Zaretskii
2023-02-15 14:23   ` Gregory Heytings
2023-02-15 16:16   ` Chen Zhaoyang

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.