[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44421: 27.1; run-python's SHOW argument has no effect

From: Lars Ingebrigtsen
Subject: bug#44421: 27.1; run-python's SHOW argument has no effect
Date: Mon, 09 Nov 2020 17:22:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

dalanicolai@gmail.com writes:

> Evaluate
>     (run-python (python-shell-calculate-command) t nil)
> the last argument 'nil' should prevent that the comint buffer is shown,
> but the comint buffer shows nevertheless.
> The solution is simple, namely, remove the before last line
>     (pop-to-buffer buffer)
> from the `run-pyton` function (printed below). The SHOW is already
> passed to the 'python-shell-make-comint' function. The `pop-to-buffer`
> makes the created comint buffer show, irrespective of the SHOW value.

It seems like the reason for the pop-to-buffer there was to make the
buffer the current buffer (see bug#31398), so I've just changed it to a
set-buffer instead.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]