From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#44421: 27.1; run-python's SHOW argument has no effect Date: Tue, 03 Nov 2020 17:10:50 +0100 Message-ID: <5e493eae6e358919f0672db4e603db5c4b5848c9.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25432"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.1 (3.38.1-1.fc33) To: 44421@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 03 17:16:08 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZyyd-0006UM-Ao for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 17:16:07 +0100 Original-Received: from localhost ([::1]:54490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZyyc-0002TZ-D7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 11:16:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZyti-00057D-98 for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 11:11:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZyth-0006OZ-VU for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 11:11:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZyth-0002Zk-Ot for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 11:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 16:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44421 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16044198609890 (code B ref -1); Tue, 03 Nov 2020 16:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Nov 2020 16:11:00 +0000 Original-Received: from localhost ([127.0.0.1]:46188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZytf-0002ZR-RK for submit@debbugs.gnu.org; Tue, 03 Nov 2020 11:11:00 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZyte-0002ZK-Bf for submit@debbugs.gnu.org; Tue, 03 Nov 2020 11:10:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZyte-00054O-6E for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 11:10:58 -0500 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:39165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZyta-0006KX-U5 for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 11:10:57 -0500 Original-Received: by mail-ej1-x635.google.com with SMTP id s25so10994648ejy.6 for ; Tue, 03 Nov 2020 08:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=KKX3ewZuUeSxcSi83RLL4u78AGP5OWM/7HWOgzu2gzs=; b=p0DipkCxG7yYyNMYU6+nrz/yR0RIwckrweQe/IF2g1NGZIfoyqTgrn6ULPc5ciSlXI yKXP1v+cqN7+ha2YiZKbS2PqLDJmJJN8PINdv4r73LATQmnxNGwSNg/JuW1cuuqxFSQf cWyWZU4fvVocM1BbP5DM34a76jJiKfoBj0gWs/dFkn+fkbpg1jz7Z0SFC7vvbJm17BNC uYmdhUaAgjc8xF0/pe6r5q5FrL8WfmQYmP2Z4P8cxYfiVIVxUMCADHJyTZ0J8lpbZPHz rRcixhl29M30SkOY4+lw5pNPVFAv/JrMZMeCqldm+TFyxQdwZhmicEvBLs7fcyLZd/Up HjiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=KKX3ewZuUeSxcSi83RLL4u78AGP5OWM/7HWOgzu2gzs=; b=fnAjfVDXHz9zE4srEbtUvTqrwyl0FgvNza2Aen+sBcCl7+hDh4qBYr71JkjbApB6IF ic3HseF1W/ORdDmcidPzV8PgBRXx/vQU7qGQEmjW6gm4Qi0FhC5jfIzh9SCrKm8gLXk7 w8qcdPFdMdoeHynQH5Y3TpiWeafnAYGlQ4EBAb3xD5BuQSIglRKmQPN5pkrxuDaHGgda 8zZTop2GuEFVzOnSaPOpsqAyquKVZt5keUfwyWvfWDsTH66woEGLms/SBjZ1JONg8ODY ccJCSzU0giiuCt/ZA03uffDwgbZbHIHcJScVpWOM1qLWrvQTVdqGaVNTcWEd3HCjPbX3 VTwA== X-Gm-Message-State: AOAM530uRJNZLBujombFdhv0UAZ4XZ4LTlTej0XbADK4/YaNO4racj/n 18AKrLpsmSe/RzVzTfsKv8TfgGcn012zOw== X-Google-Smtp-Source: ABdhPJzDffOdzvWsLG8L8obJOCQHGRN0V0pdLPo8Cadinu61hfRiHjdiwjF7ieFHeiLHfZUfInx1Og== X-Received: by 2002:a17:906:398b:: with SMTP id h11mr21494141eje.277.1604419851896; Tue, 03 Nov 2020 08:10:51 -0800 (PST) Original-Received: from [192.168.3.6] (195-240-143-159.fixed.kpn.net. [195.240.143.159]) by smtp.gmail.com with ESMTPSA id dn20sm11013877ejc.63.2020.11.03.08.10.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 08:10:51 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=dalanicolai@gmail.com; helo=mail-ej1-x635.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192622 Archived-At: 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. (defun run-python (&optional cmd dedicated show) "Run an inferior Python process. Argument CMD defaults to `python-shell-calculate-command' return value. When called interactively with `prefix-arg', it allows the user to edit such value and choose whether the interpreter should be DEDICATED for the current buffer. When numeric prefix arg is other than 0 or 4 do not SHOW. For a given buffer and same values of DEDICATED, if a process is already running for it, it will do nothing. This means that if the current buffer is using a global process, the user is still able to switch it to use a dedicated one. Runs the hook `inferior-python-mode-hook' after `comint-mode-hook' is run. (Type \\[describe-mode] in the process buffer for a list of commands.)" (interactive (if current-prefix-arg (list (read-shell-command "Run Python: " (python-shell-calculate- command)) (y-or-n-p "Make dedicated process? ") (= (prefix-numeric-value current-prefix-arg) 4)) (list (python-shell-calculate-command) nil t))) (let ((buffer (python-shell-make-comint (or cmd (python-shell-calculate-command)) (python-shell-get-process-name dedicated) show))) (pop-to-buffer buffer) (get-buffer-process buffer))) In GNU Emacs 27.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.22, cairo version 1.16.0)  of 2020-08-21 built on buildhw-x86-03.iad2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.12009000 System Description: Fedora 33 (Workstation Edition) Recent messages: Updating /home/dalanicolai/.emacs.d/quelpa/melpa Newer package has been installed. Not upgrading. [2 times] Fetcher: github Source: dalanicolai/calibredb.el Updating /home/dalanicolai/.emacs.d/quelpa/build/calibredb/ Newer package has been installed. Not upgrading. Loading /home/dalanicolai/.emacs.d/init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Configured using:  'configure --build=x86_64-redhat-linux-gnu  --host=x86_64-redhat-linux-gnu --program-prefix=  --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr  --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc  --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64  --libexecdir=/usr/libexec --localstatedir=/var  --sharedstatedir=/var/lib --mandir=/usr/share/man  --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png  --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3  --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz  --with-cairo --with-json build_alias=x86_64-redhat-linux-gnu  host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2  -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches  -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2  -Wp,-D_GLIBCXX_ASSERTIONS  -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong  -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic  -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'  LDFLAGS=-Wl,-z,relro  PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings:   value of $LANG: en_US.UTF-8   value of $XMODIFIERS: @im=ibus   locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect:   override-global-mode: t   tooltip-mode: t   global-eldoc-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   blink-cursor-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t   buffer-read-only: t   line-number-mode: t   transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mailabbrev gmm-utils mailheader sendmail mail-utils .emacs quelpa-use-package use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core cl-extra parse-time iso8601 time-date quelpa mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr lisp-mnt help-fns radix-tree help-mode finder-inf clang-rename clang-include-fixer let-alist clang-format xml info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 208971 12398)  (symbols 48 14374 1)  (strings 32 71497 2903)  (string-bytes 1 1885213)  (vectors 16 20004)  (vector-slots 8 273672 11704)  (floats 8 39 25)  (intervals 56 328 0)  (buffers 1000 14))