all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: dalanicolai@gmail.com
Cc: 44421@debbugs.gnu.org
Subject: bug#44421: 27.1; run-python's SHOW argument has no effect
Date: Mon, 09 Nov 2020 17:22:56 +0100	[thread overview]
Message-ID: <87blg6jy8v.fsf@gnus.org> (raw)
In-Reply-To: <5e493eae6e358919f0672db4e603db5c4b5848c9.camel@gmail.com> (dalanicolai@gmail.com's message of "Tue, 03 Nov 2020 17:10:50 +0100")

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	other threads:[~2020-11-09 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-03 16:10 bug#44421: 27.1; run-python's SHOW argument has no effect dalanicolai
2020-11-09 16:22 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blg6jy8v.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=44421@debbugs.gnu.org \
    --cc=dalanicolai@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.