From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.bugs Subject: bug#64397: 29.0.91; Limited configuration of commands based on python-interpreter Date: Sat, 01 Jul 2023 08:33:33 +0200 Message-ID: <87leg0b0oy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20656"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 64397@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 01 08:34:10 2023 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 1qFUBN-000568-Fg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jul 2023 08:34:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFUBH-0003vq-Cy; Sat, 01 Jul 2023 02:34:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFUBG-0003va-9R for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 02:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFUBG-00084t-14 for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 02:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFUBF-0008Ci-S8 for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 02:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matthias Meulien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jul 2023 06:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64397 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.168819322431506 (code B ref -1); Sat, 01 Jul 2023 06:34:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jul 2023 06:33:44 +0000 Original-Received: from localhost ([127.0.0.1]:56261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFUAx-0008C5-0K for submit@debbugs.gnu.org; Sat, 01 Jul 2023 02:33:43 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFUAu-0008Bx-Mf for submit@debbugs.gnu.org; Sat, 01 Jul 2023 02:33:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFUAu-0003tC-Gv for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 02:33:40 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFUAr-000801-Dl for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 02:33:40 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3142a9ffa89so621798f8f.0 for ; Fri, 30 Jun 2023 23:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688193215; x=1690785215; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=/GYcURXkIl8KhF8QOY70vIUH3r77ZfRJ3SivA7dAXsA=; b=konKVq+H+dY8ByAPoeU1p7zxmgAekt1nHprtS5ahJj1Yo1i+3Z4RgzZuh94K++bjyW WdtLiB3CwEvkJFXvtSJpZkGUuo/ax+Ydd5qjzZzUJxKtT4+ZOmjyQuGzfPAI3nv9scWa Pn99/xvHFktjWPK37L7cImG8fY6LcApUK432mu7XxHvRUZzjrP2br1gpxkkMYDLB8J2S gkzdkCobaHf/NhsZqQzm3XDf93RSpBbMpJYA/wfZIAQ6Jhe+V8yDNf00SDs/WBMwjW+Q lC8wNjw9150WX/Lf1HVdz3iYscM+vNplJ1KDeKqZPBdPqy/DL0OiCjU/E6/gzoCDjuBh T5HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688193215; x=1690785215; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/GYcURXkIl8KhF8QOY70vIUH3r77ZfRJ3SivA7dAXsA=; b=LqACn0kNAezO+3+DJ4/ulmEd0UPKQPeSf5WhKBja08P8MwYxR8i4XAsLLcC0LJwhs+ 8UYg6SpUTSuBrqt1EGeklstgf+b1TeNwgdBGm/PdfXxpFNCQvHi30BrTTvtr2LuGcYJ8 7TPWmm2rT9uFm/tSnYV6EdAj+qE4qCE5s7mYAhSrd0A17m3WLJ6yl3wVwDRVPn7E18gr 6ufhFz7QmHI/cAlYx5dxVfSrmdMmNGSzKCOul1kgV8bMZWFxPqx7J/9gBdXYS03kN5e/ hsHi6+WBShgezCwPtj+ouom+L/hQpZb0LU0x+DZ97DsS8bNjbSZejrzCiUOX7jP4RfNw 3HYg== X-Gm-Message-State: ABy/qLYlnPyxYh8F0tz3Mh2hlSxtPT4VS7KcVptjXauTZfGMUk8izMAe 4Hqdrl6Z9xp6BNliHMs/dNwAJbrrrTKkcA== X-Google-Smtp-Source: APBJJlFl6kRtIZTGerebfwv4siiAJQEkafLGvUnEFEmj1yvEljunbiQckQsjZVYsZ50SlrltOfDVIw== X-Received: by 2002:adf:e783:0:b0:313:f07a:af3e with SMTP id n3-20020adfe783000000b00313f07aaf3emr3720183wrm.46.1688193214863; Fri, 30 Jun 2023 23:33:34 -0700 (PDT) Original-Received: from carbon.localdomain ([2a01:e0a:245:c850:98f5:429a:aa8e:95bb]) by smtp.gmail.com with ESMTPSA id p5-20020a5d68c5000000b00314283a525bsm1802169wrw.93.2023.06.30.23.33.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 23:33:34 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=orontee@gmail.com; helo=mail-wr1-x42f.google.com 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, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264356 Archived-At: In Python projects managed using the popular Poetry dependency manager, I use 'poetry run python' as Python shell interpreter; It ensures all Python interaction happens in a virtual environment where development dependencies are installed. In Emacs, I set `python-shell-interpreter' to "poetry" and `python-shell-interpreter-args' to "run python" through directory local variables at the root of my Python projects. And everything works as expected: No environment variable to set, no script to call, but each project has its own interpreter using dedicated dependencies, etc.. Great! Alas `python-sort-imports' and related commands use `python-interpreter' which doesn't have an "-args" variable. But `python-sort-imports' rely on external Python libraries being installed (like isort). I don't want to install such library globally (they're already available in the project virtual environment as dependencies of the lsp server). To make `python-interpreter' use the virtual environment provided by Poetry one would need a `python-interpreter-args' custom variable. I'd like to add such a variable. Any comments? Is it the right way to solve my problem? In GNU Emacs 29.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-06-13 built on carbon Repository revision: 212884f2bfed7f00e58aad183edd20ecc2a23e71 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --with-json --with-native-compilation --with-x-toolkit=gtk --with-tree-sitter' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: gnus-topic-mode: t shell-dirtrack-mode: t highlight-changes-visible-mode: t breadcrumb-mode: t minions-mode: t global-company-mode: t company-mode: t gnus-undo-mode: t desktop-save-mode: t server-mode: t pixel-scroll-precision-mode: t save-place-mode: t electric-pair-mode: t icomplete-mode: t global-so-long-mode: t global-auto-revert-mode: t auto-insert-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-layout-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t window-divider-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/matthias/.config/emacs/elpa/jsonrpc-1.0.17/jsonrpc hides /usr/local/share/emacs/29.0.91/lisp/jsonrpc /home/matthias/.config/emacs/elpa/flymake-1.3.4/flymake hides /usr/local/share/emacs/29.0.91/lisp/progmodes/flymake /home/matthias/.config/emacs/elpa/project-0.9.8/project hides /usr/local/share/emacs/29.0.91/lisp/progmodes/project /home/matthias/.config/emacs/elpa/eglot-1.15/eglot hides /usr/local/share/emacs/29.0.91/lisp/progmodes/eglot /home/matthias/.config/emacs/elpa/dictionary-20201001.1727/dictionary hides /usr/local/share/emacs/29.0.91/lisp/net/dictionary /home/matthias/.config/emacs/elpa/soap-client-3.2.3/soap-client hides /usr/local/share/emacs/29.0.91/lisp/net/soap-client /home/matthias/.config/emacs/elpa/soap-client-3.2.3/soap-inspect hides /usr/local/share/emacs/29.0.91/lisp/net/soap-inspect /home/matthias/.config/emacs/elpa/eldoc-1.14.0/eldoc hides /usr/local/share/emacs/29.0.91/lisp/emacs-lisp/eldoc Features: (shadow sort gnus-cite mail-extr emacsbug gnus-topic nndraft nnmh nnfolder utf-7 epa-file network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-cache dabbrev shortdoc tabify cus-start cl-print help-fns radix-tree mhtml-mode hideshow cap-words superword subword css-mode js c-ts-common make-mode follow mule-util yaml-mode rst smerge-mode diff rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid nxml-mode nxml-outln nxml-rap sgml-mode facemenu add-log sh-script smie executable files-x shell vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view pcvs-util misearch multi-isearch image-dired image-dired-tags image-dired-external image-dired-util man hl-line dired-aux conf-mode flyspell ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox oc-basic org-element org-persist org-id avl-tree ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom ol-docview doc-view image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi vc-dir vc goto-addr jka-compr display-line-numbers hilit-chg eglot external-completion jsonrpc flymake-proc flymake ert ewoc debug backtrace compile breadcrumb imenu company-oddmuse company-keywords company-etags etags fileloop generator xref company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb ob-python python project treesit minions compat company pcase carbon-custom cus-edit cus-load gnus-demon nntp gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 parse-time iso8601 gnus-spec gnus-win nnoo gnus-int gnus-range message sendmail yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus nnheader gnus-util mail-utils range mm-util mail-prsvr wid-edit gnus-dired dired-x dired dired-loaddefs org-capture org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete comint ansi-osc ansi-color org-list org-footnote org-faces org-entities time-date ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-compat org-version org-macs format-spec dictionary link connection advice markdown-mode color thingatpt noutline outline skeleton find-file vc-git diff-mode easy-mmode vc-dispatcher ispell comp comp-cstr warnings icons rx cl-extra help-mode desktop frameset server bookmark text-property-search pp pixel-scroll cua-base ring saveplace elec-pair icomplete so-long autorevert filenotify autoinsert cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs generic-x face-remap yasnippet-snippets-autoloads git-link-autoloads flymake-easy-autoloads proof-general-autoloads proof-site proof-autoloads debbugs-autoloads minions-autoloads compat-autoloads markdown-mode-autoloads typescript-mode-autoloads soap-client-autoloads breadcrumb-autoloads yaml-mode-autoloads dockerfile-mode-autoloads terraform-mode-autoloads hcl-mode-autoloads restclient-jq-autoloads restclient-autoloads dash-autoloads eglot-autoloads jsonrpc-autoloads company-autoloads caml-autoloads jq-mode-autoloads csv-mode-autoloads info mmm-mode-autoloads yaml-autoloads rfc-mode-autoloads mallard-mode-autoloads go-mode-autoloads flymake-autoloads project-autoloads eldoc-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 791656 86540) (symbols 48 41142 1) (strings 32 189966 5117) (string-bytes 1 6010657) (vectors 16 84791) (vector-slots 8 2369682 33963) (floats 8 728 451) (intervals 56 12747 4282) (buffers 984 121)) -- Matthias