From unknown Mon Aug 11 21:13:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18244 <18244@debbugs.gnu.org> To: bug#18244 <18244@debbugs.gnu.org> Subject: Status: 24.3.92; Error with semantic-mode when python buffers are present. Reply-To: bug#18244 <18244@debbugs.gnu.org> Date: Tue, 12 Aug 2025 04:13:47 +0000 retitle 18244 24.3.92; Error with semantic-mode when python buffers are pre= sent. reassign 18244 emacs submitter 18244 Thierry Volpiatto severity 18244 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 11 02:44:37 2014 Received: (at submit) by debbugs.gnu.org; 11 Aug 2014 06:44:38 +0000 Received: from localhost ([127.0.0.1]:38384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGjLQ-0008F6-7P for submit@debbugs.gnu.org; Mon, 11 Aug 2014 02:44:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51112) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGjLL-0008Eo-Fv for submit@debbugs.gnu.org; Mon, 11 Aug 2014 02:44:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGjLA-0003p0-7x for submit@debbugs.gnu.org; Mon, 11 Aug 2014 02:44:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50, FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjLA-0003ow-4K for submit@debbugs.gnu.org; Mon, 11 Aug 2014 02:44:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjL3-0001gO-Va for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 02:44:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGjKx-0003oR-TX for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 02:44:13 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:35275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjKx-0003oH-IM for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 02:44:07 -0400 Received: by mail-wi0-f170.google.com with SMTP id f8so5032557wiw.1 for ; Sun, 10 Aug 2014 23:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=fAFSkJucCOMBXZ8bCLAOIDg8vQPGzFVXBId/q3zdKRA=; b=hiDqSLyOO187Nu5Iy2dml/pWmwNn0E/kTdrPqhcbxF9jVh2vzqkGE5qtIpRQkFoT+8 d+8q+KRgMXfouEQbKlptbyfutpWwzimD1VPUHVzu+sD3pTdJq6CVlBqRzO2ia8v81hkB pJfKEvAcyXVfaOeHLAoQDd/x5n5iCjCecxJ2cCYz5B9ndR21j/PEsXpFB5eVAq57VPj3 E+dpaoVE4x2ATzbYz+ckT2yNsDLz1zGY9BH+hFNQ75j4rJJixZ+/iBbL3XCnwinhu8tT cTNvUVWo5qIlLlmX1Mk+aSXnUoqsylzvWbWw8wdTspc0wIn6jcaFcU/Qv5p3v6ekugRR PKbg== X-Received: by 10.180.39.139 with SMTP id p11mr19407958wik.50.1407739446068; Sun, 10 Aug 2014 23:44:06 -0700 (PDT) Received: from dell-14z ([37.162.25.38]) by mx.google.com with ESMTPSA id 19sm37666996wjz.3.2014.08.10.23.44.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 10 Aug 2014 23:44:05 -0700 (PDT) From: Thierry Volpiatto To: bug-gnu-emacs@gnu.org Subject: 24.3.92; Error with semantic-mode when python buffers are present. Date: Mon, 11 Aug 2014 08:43:21 +0200 Message-ID: <87ppg75xw4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) 1) Open some python files. 2) (semantic-mode 1) Debugger entered--Lisp error: (file-error "Searching for program" "aucun fi= chier ou dossier de ce type" "nil") start-process("Python Internal [fab30fe3f846223fdafbc4e25eb683fd]" # "nil" "-i" "--aut= oindent") apply(start-process "Python Internal [fab30fe3f846223fdafbc4e25eb683fd]" = # "nil" ("-i"= "--autoindent")) start-file-process("Python Internal [fab30fe3f846223fdafbc4e25eb683fd]" #= "nil" "-i" "= --autoindent") apply(start-file-process "Python Internal [fab30fe3f846223fdafbc4e25eb683= fd]" # "nil" = ("-i" "--autoindent")) comint-exec-1("Python Internal [fab30fe3f846223fdafbc4e25eb683fd]" # "nil" ("-i" "--au= toindent")) comint-exec(# "Python Internal [fab30fe3f846223fdafbc4e25eb683fd]" "nil" nil ("-i" "--= autoindent")) make-comint-in-buffer("Python Internal [fab30fe3f846223fdafbc4e25eb683fd]= " " *Python Internal [fab30fe3f846223fdafbc4e25eb683fd]*" "nil" nil "-i" "-= -autoindent") apply(make-comint-in-buffer "Python Internal [fab30fe3f846223fdafbc4e25eb= 683fd]" " *Python Internal [fab30fe3f846223fdafbc4e25eb683fd]*" "nil" nil (= "-i" "--autoindent")) python-shell-make-comint("nil -i --autoindent" "Python Internal [fab30fe3= f846223fdafbc4e25eb683fd]" nil t) run-python-internal() python-shell-internal-get-or-create-process() python-shell-internal-send-string("import sys;print ('\\n'.join(sys.path)= )") semantic-python-get-system-include-path() (progn (semantic-python-get-system-include-path)) (if (and (featurep (quote python)) (not noninteractive)) (progn (semantic= -python-get-system-include-path))) (when (and (featurep (quote python)) (not noninteractive)) (semantic-pyth= on-get-system-include-path)) eval((when (and (featurep (quote python)) (not noninteractive)) (semantic= -python-get-system-include-path))) byte-code("\303\304N\211.\203.=00 @\202.=00\n)!\207" [symbol sv exp eval= saved-value] 4) custom-initialize-reset(semantic-python-dependency-system-include-path (w= hen (and (featurep (quote python)) (not noninteractive)) (semantic-python-g= et-system-include-path))) custom-declare-variable(semantic-python-dependency-system-include-path (w= hen (and (featurep (quote python)) (not noninteractive)) (semantic-python-g= et-system-include-path)) "The system include path used by Python language."= :group python :group semantic :type (repeat (directory :tag "Directory")) = :set #[(sym val) "\303 \"\210 .\304\305\nBC\306\307#\210\310\311\307\"\210= \n\210)\312\313!\205\".\310\313\307\"\207" [sym val tmp0 set-default mode-l= ocal-bind semantic-dependency-system-include-path (mode-variable-flag t) py= thon-mode mode-local-map-mode-buffers #[nil "\302\301!\210\211.\207" [tmp0= semantic-dependency-system-include-path make-local-variable] 2] fboundp se= mantic-decoration-unparsed-include-do-reset] 4]) byte-code("\306\300\307\310\311\312\311\313\314\315\316\317&=0B\210.\320= \321 BC\322\323#\210\324\325\323\"\210 \210)\326\321\323.=1B\327=0B!\330.= =1D\n\204F.=0E=1F\211.\204F.=0E .=0E.\205E.\331.=0E.\".\n\203p.\f\204p.\n\3= 32N\203_.\331.\n\332N\"\211.\204F.\n\211.\333N\206j.\n\334N)\211.\204J.\f,\= 335\336#\210\326\321\323\300#\207" [semantic-python-dependency-system-inclu= de-path tmp0 mode symbol bind name custom-declare-variable (when (and (feat= urep (quote python)) (not noninteractive)) (semantic-python-get-system-incl= ude-path)) "The system include path used by Python language." :group python= semantic :type (repeat (directory :tag "Directory")) :set #[(sym val) "\30= 3 \"\210 .\304\305\nBC\306\307#\210\310\311\307\"\210\n\210)\312\313!\205\= ".\310\313\307\"\207" [sym val tmp0 set-default mode-local-bind semantic-de= pendency-system-include-path (mode-variable-flag t) python-mode mode-local-= map-mode-buffers #[nil "\302\301!\210\211.\207" [tmp0 semantic-dependency-= system-include-path make-local-variable] 2] fboundp semantic-decoration-unp= arsed-include-do-reset] 4] mode-local-bind semantic-dependency-system-inclu= de-path (mode-variable-flag t) python-mode mode-local-map-mode-buffers #[ni= l "\302\301!\210\211.\207" [tmp0 semantic-dependency-system-include-path m= ake-local-variable] 2] put symbol-name nil intern-soft mode-local-symbol-ta= ble mode-local-parent derived-mode-parent variable-documentation "System pa= th to search for include files." mode-local-active-mode major-mode] 12) wisent-python-default-setup() semantic-new-buffer-fcn() semantic-mode(1) eval((semantic-mode 1) nil) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) tv-eval-last-sexp-at-eol() call-interactively(tv-eval-last-sexp-at-eol nil nil) command-execute(tv-eval-last-sexp-at-eol) In GNU Emacs 24.3.92.1 (x86_64-unknown-linux-gnu, X toolkit) of 2014-08-09 on dell-14z Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS Configured using: `configure --with-x-toolkit=3Dlucid --without-toolkit-scroll-bars --without-gconf --without-gsettings' Important settings: value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: git-gutter-mode: t psession-mode: t golden-ratio-mode: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t auto-image-file-mode: t eldoc-in-minibuffer-mode: t show-paren-mode: t display-time-mode: t recentf-mode: t savehist-mode: t eldoc-mode: t minibuffer-depth-indicate-mode: t helm-mode: t helm-descbinds-mode: t shell-dirtrack-mode: t helm-adaptive-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t tooltip-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: q M-x =20 M-p M-p M-p M-p M-p M-p M-p M-p M-p 1 ) SPC=20 O p e n SPC s o m e SPC p y t h o n SPC f i l e s .=20 2 ) SPC M-( s e m a n t i c - m o d e SPC=20 1 M-y M-y M-y M-y =20 C-c C-c d n =20 =20 =20 =20 M-<=20 =20 =20 =20 C-c C-c ? r =20 =20 =20 C-c C-c =20 C-c C-k y C-< q C-< C-x C-=C2=B2 M-x Recent messages: report-emacs-bug-hook: M-x report-emacs-bug was canceled, please read *Bug = Help* buffer Mark set [2 times] NUL characters found, which may cause problems. Continue sending? (d, r, s= , e, ?): [2 times] Mark set Sending... message-send: No methods specified to send by Mark set Sending... message-send: No methods specified to send by Message modified; kill anyway? (y or n) y Load-path shadows: ~/elisp/auctex/lpath hides ~/elisp/emacs-wget/lpath /usr/local/share/emacs/24.3.92/lisp/emacs-lisp/tq hides ~/elisp/emms/lisp/tq Features: (help-mode mail-extr helm-ring cl-indent shadow epa-mail mule-util emacsbug helm-command vc-rcs sh-script smie executable vc-git naquadah-theme em-unix em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias align-let git-gutter server psession golden-ratio winner undo-tree diff slime-xref-browser slime-banner slime-tramp slime-asdf slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime gud apropos etags arc-mode archive-mode image-file xdvi-search preview-latex tex-site auto-loads pcomplete-extension pcmpl-unix pcmpl-gnu em-term term disp-table ehelp helm-ipython helm-elisp helm-eval python json eldoc-eval warnings whitespace paren time recentf tree-widget savehist mu4e-config org-mu4e helm-mu mu4e-contrib mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view mu4e-headers mu4e-compose mu4e-draft mu4e-actions ido rfc2368 mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils mu4e-lists mu4e-about mu4e-vars mu4e-meta gnus-dired nnir gnus-sum gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win nnoo config-w3m w3m-search w3m doc-view jka-compr image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util w3m-load smtpmail-async smtpmail sendmail dired-async iterator lacarte iedit-rect iedit iedit-lib smallurl mm-url gnus gnus-ems nnheader wid-edit rectangle-utils rect ledger-config ledger esh-var esh-io esh-cmd esh-opt esh-ext esh-proc eldoc esh-groups eshell esh-module esh-mode esh-arg esh-util tv-utils async pcvs vc-cvs pcvs-parse pcvs-info pcvs-defs pcvs-util ewoc mb-depth cl-info hyperspec slime-autoloads esh-toggle flymake no-word htmlize cl dired-extension emms-mpd-config emms-playlist-limit emms-volume emms-volume-amixer emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics emms-url hl-line emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-playlist-mode emms-player-vlc emms-player-mplayer emms-info emms-streams later-do emms-source-playlist emms-source-file emms-player-simple emms-setup emms emms-compat org-config-thierry ob-sh org-crypt cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs org-annotation-helper addressbook-bookmark message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader firefox-protocol bookmark-firefox-handler bookmark-extensions org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs init-helm-thierry helm-mode helm-dictionary helm-ls-git helm-descbinds helm-ls-hg helm-files image-dired tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec dired-x dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap helm-plugin bookmark pp helm-help helm-match-plugin helm-grep wgrep-helm wgrep helm-regexp grep helm-external helm-utils dired compile comint ansi-color ring helm-locate helm cl-macs gv vc vc-dispatcher helm-config helm-aliases epa-file epa derived epg epg-config auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache package time-date avoid cus-start cus-load w3m-wget info easymenu edmacro kmacro advice help-fns net-utils cl-loaddefs cl-lib tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 482044 40685) (symbols 48 54894 4) (miscs 40 386 1000) (strings 32 130267 14038) (string-bytes 1 3821416) (vectors 16 46164) (vector-slots 8 791234 24790) (floats 8 2153 314) (intervals 56 3232 0) (buffers 960 88) (heap 1024 34545 2356)) --=20 Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 11 03:16:48 2014 Received: (at 18244) by debbugs.gnu.org; 11 Aug 2014 07:16:48 +0000 Received: from localhost ([127.0.0.1]:38398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGjqa-0000au-67 for submit@debbugs.gnu.org; Mon, 11 Aug 2014 03:16:48 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:37967 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGjqX-0000am-Ey for 18244@debbugs.gnu.org; Mon, 11 Aug 2014 03:16:46 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XGjqW-0008UL-Ti; Mon, 11 Aug 2014 03:16:45 -0400 From: Glenn Morris To: Thierry Volpiatto Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. References: <87ppg75xw4.fsf@gmail.com> X-Spook: Fedayeen Arnett AMEMB insurgency eternity server SHA X-Ran: l8.XLxuVq+b78hdv8l'kEyyAeC/N>G]TO;f)kHSS6bPjJpQ|fV@ZaqkO=ED\Cust-*+We# X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 11 Aug 2014 03:16:44 -0400 In-Reply-To: <87ppg75xw4.fsf@gmail.com> (Thierry Volpiatto's message of "Mon, 11 Aug 2014 08:43:21 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 18244 Cc: 18244@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) Seems like you don't have "python" in your PATH. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 11 09:18:35 2014 Received: (at 18244) by debbugs.gnu.org; 11 Aug 2014 13:18:35 +0000 Received: from localhost ([127.0.0.1]:38723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGpUh-0002ia-1y for submit@debbugs.gnu.org; Mon, 11 Aug 2014 09:18:35 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:41200) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGpUe-0002iK-J7 for 18244@debbugs.gnu.org; Mon, 11 Aug 2014 09:18:33 -0400 Received: by mail-wg0-f49.google.com with SMTP id k14so8412462wgh.8 for <18244@debbugs.gnu.org>; Mon, 11 Aug 2014 06:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=IRItpGW9l40ibzk7pnQbbCy5jH4drMHH1StZSJGkw5A=; b=p15Q6cOdLZyjvn/6W+2GHcpd7vkKXRTf2MeE01ent10EbZQGPG7TqScgmJWMlKhSk7 a7RPxNWgN4SZSdWcAWz0X+RyAjbEppeV5tElzU5h81/lc3Dc/EOH5TRd8RSHyqC/L9mZ 20DrQge3MlcimuSJq3v1JRMXpeLUVt7uLx8XUL6sUYQUBAPphL3wD/hpU6dbXAC2Vknh MHfGyyNRDFRR8VldHL5a2AOz613cR7WEdxcCsyA8qapxq7o68pO8sKBI7jJHe6JkJSOh fizg6+1o3nQUC3oAtaNNPSekBynMyAABBv9YeutKXbzFvQLSpUqk9wfEljua5C72LI1D V41g== X-Received: by 10.194.189.230 with SMTP id gl6mr11754451wjc.118.1407763106600; Mon, 11 Aug 2014 06:18:26 -0700 (PDT) Received: from dell-14z ([37.163.2.57]) by mx.google.com with ESMTPSA id h3sm1504112wjz.48.2014.08.11.06.18.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 11 Aug 2014 06:18:25 -0700 (PDT) References: <87ppg75xw4.fsf@gmail.com> From: Thierry Volpiatto To: Glenn Morris Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. Date: Mon, 11 Aug 2014 15:14:54 +0200 In-reply-to: Message-ID: <87mwbb5fms.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18244 Cc: 18244@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Glenn Morris writes: > Seems like you don't have "python" in your PATH. I use ipython in my config, and indeed ipython is not yet installed in my new OS. Now it is done, sorry for the noise, maybe this should fail more gracefully ? Sending a useful error message ? Thanks. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 11 11:37:57 2014 Received: (at 18244) by debbugs.gnu.org; 11 Aug 2014 15:37:57 +0000 Received: from localhost ([127.0.0.1]:39496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGrfZ-0006Ll-8d for submit@debbugs.gnu.org; Mon, 11 Aug 2014 11:37:57 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:48118 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGrfX-0006Ld-A7 for 18244@debbugs.gnu.org; Mon, 11 Aug 2014 11:37:55 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XGrfV-0002CU-7d; Mon, 11 Aug 2014 11:37:53 -0400 From: Glenn Morris To: Thierry Volpiatto Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. References: <87ppg75xw4.fsf@gmail.com> <87mwbb5fms.fsf@gmail.com> X-Spook: White Water monarchist cryptanalysis Ansar al-Islam Tony X-Ran: D*\'va>wHzg+u0\`Sw`Z1i$i8CQnQ6(/`l'ycfE48^%2Lc>0x@C8}nP#ZQ/5+.jG9d"dzE X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 11 Aug 2014 11:37:52 -0400 In-Reply-To: <87mwbb5fms.fsf@gmail.com> (Thierry Volpiatto's message of "Mon, 11 Aug 2014 15:14:54 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 18244 Cc: 18244@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) Thierry Volpiatto wrote: > I use ipython in my config, and indeed ipython is > not yet installed in my new OS. Now it is done, sorry for the noise, > maybe this should fail more gracefully ? Sending a useful error message > ? Yes, seems like an issue with both semantic and python.el (which maybe does not need to call executable-find, and maybe does not need its own special value for exec-path?). From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 12 01:38:27 2014 Received: (at 18244) by debbugs.gnu.org; 12 Aug 2014 05:38:27 +0000 Received: from localhost ([127.0.0.1]:39913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XH4mw-00065N-AF for submit@debbugs.gnu.org; Tue, 12 Aug 2014 01:38:26 -0400 Received: from mail-we0-f175.google.com ([74.125.82.175]:42290) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XH4mu-000656-56 for 18244@debbugs.gnu.org; Tue, 12 Aug 2014 01:38:24 -0400 Received: by mail-we0-f175.google.com with SMTP id t60so9507988wes.20 for <18244@debbugs.gnu.org>; Mon, 11 Aug 2014 22:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:message-id:in-reply-to :mime-version:content-type; bh=keslxqUNFDlkXSFPQUv7+QIlkNH1eAw7ZM9wgBNadWY=; b=TRPKmsjbNhEOse7tzJMrvj+dsUkUmhj9eU2e5EcmDJZzVcPTWkRbyZGe6pCWSf7tRG /48OHL7KhgyXyBRD7LQxW8/iLcR+S1e5NbROzJcXNnNmriZVvKkpR/wQ8MA/rPQ+6Lw5 Dri2eBsbPyed5ND4LccMU9APshsfWGkar3MEvPOOyANuwDJ1/YgUnq2hiblWZgjNcGT9 p9AiPoeaVV/8VecIKw+wuM2CX9vSh5Ks4kWfWezbx3P/N3BVbkvA0bxzJxgnmJTUuoSp +3NVpU3HQmEZu58/pgRJyfOcdpu9HCW12cKpBd0eS4bY/cl4FgwUjrSCUXNahR9uOSI5 Tphg== X-Received: by 10.180.105.6 with SMTP id gi6mr29994248wib.81.1407821898206; Mon, 11 Aug 2014 22:38:18 -0700 (PDT) Received: from dell-14z ([37.163.57.1]) by mx.google.com with ESMTPSA id ej10sm52099760wib.12.2014.08.11.22.38.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 11 Aug 2014 22:38:17 -0700 (PDT) References: <87ppg75xw4.fsf@gmail.com> <87mwbb5fms.fsf@gmail.com> From: Thierry Volpiatto To: Glenn Morris Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. Date: Tue, 12 Aug 2014 07:27:05 +0200 Message-ID: <87sil2s27d.fsf@gmail.com> In-reply-to: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18244 Cc: 18244@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Glenn Morris writes: > Thierry Volpiatto wrote: > >> I use ipython in my config, and indeed ipython is >> not yet installed in my new OS. Now it is done, sorry for the noise, >> maybe this should fail more gracefully ? Sending a useful error message >> ? > > Yes, seems like an issue with both semantic and python.el > (which maybe does not need to call executable-find, and maybe does not > need its own special value for exec-path?). Also the (annoying) warning message about setting local vars while let-bound can be easily avoided: ,----[ python.el, inferior-python-mode ] | (let ((interpreter python-shell-interpreter) | (args python-shell-interpreter-args)) | (when python-shell--parent-buffer | (python-util-clone-local-variables python-shell--parent-buffer)) | ;; Users can override default values for these vars when calling | ;; `run-python'. This ensures new values let-bound in | ;; `python-shell-make-comint' are locally set. | (set (make-local-variable 'python-shell-interpreter) interpreter) | (set (make-local-variable 'python-shell-interpreter-args) args)) | [...] `---- -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 18 12:20:22 2014 Received: (at 18244) by debbugs.gnu.org; 18 Aug 2014 16:20:22 +0000 Received: from localhost ([127.0.0.1]:46371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJPfR-0005n7-W7 for submit@debbugs.gnu.org; Mon, 18 Aug 2014 12:20:22 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:59045) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJPfO-0005mx-4A for 18244@debbugs.gnu.org; Mon, 18 Aug 2014 12:20:19 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s7IGKFQX028617; Mon, 18 Aug 2014 12:20:16 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id BF877AE091; Mon, 18 Aug 2014 12:20:13 -0400 (EDT) From: Stefan Monnier To: "=?windows-1252?Q?Fabi=E1n?= E. Gallina" Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. Message-ID: References: <87ppg75xw4.fsf@gmail.com> <87mwbb5fms.fsf@gmail.com> <87sil2s27d.fsf@gmail.com> Date: Mon, 18 Aug 2014 12:20:13 -0400 In-Reply-To: <87sil2s27d.fsf@gmail.com> (Thierry Volpiatto's message of "Tue, 12 Aug 2014 07:27:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5038=0 X-NAI-Spam-Version: 2.3.0.9378 : core <5038> : inlines <1187> : streams <1267009> : uri <1804057> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 18244 Cc: Glenn Morris , 18244@debbugs.gnu.org, Thierry Volpiatto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.0 (--) Glenn said: >> Yes, seems like an issue with both semantic and python.el >> (which maybe does not need to call executable-find, Haven't looked at the Semantic code, but I removed the executable-find call in python.el since it was redundant anyway and hence ended up just hiding the name of the program we're looking for. I also added some FIXME comments in other code using executable-find where several things look fishy. Fabi=E1n, can you take a look at those FIXMEs? >> and maybe does not need its own special value for exec-path?). It does, in order to support Python's virtualenv. BTW, Fabi=E1n, could you also rename python-shell-virtualenv-path to something else (e.g python-shell-virtualenv-root or python-shell-virtualenv-directory or python-shell-virtualenv-filename or just python-shell-virtualenv?) since the GNU convention is to use "path" only to mean "a list of directories in which we search", as in $PATH, $MANPATH, load-path, ... Thierry said: > Also the (annoying) warning message about setting local vars while > let-bound can be easily avoided: I know the kind of message you're talking about, but I don't know when it occurs. Do you have a recipe? > ,----[ python.el, inferior-python-mode ] > | (let ((interpreter python-shell-interpreter) > | (args python-shell-interpreter-args)) > | (when python-shell--parent-buffer > | (python-util-clone-local-variables python-shell--parent-buffer)) > | ;; Users can override default values for these vars when calling > | ;; `run-python'. This ensures new values let-bound in > | ;; `python-shell-make-comint' are locally set. > | (set (make-local-variable 'python-shell-interpreter) interpreter) > | (set (make-local-variable 'python-shell-interpreter-args) args)) > | [...] > `---- Not sure if someone installed your code already or what, but the above looks identical to the current code. Am I missing something? Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 18 12:36:56 2014 Received: (at 18244) by debbugs.gnu.org; 18 Aug 2014 16:36:56 +0000 Received: from localhost ([127.0.0.1]:46391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJPvT-0007Si-CJ for submit@debbugs.gnu.org; Mon, 18 Aug 2014 12:36:55 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:47957) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJPvP-0007SN-M2 for 18244@debbugs.gnu.org; Mon, 18 Aug 2014 12:36:52 -0400 Received: by mail-wi0-f178.google.com with SMTP id hi2so3937051wib.17 for <18244@debbugs.gnu.org>; Mon, 18 Aug 2014 09:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=Tocgd42QcQS6X06+xoFLlakvHmJAHPedr06GfvX1Eno=; b=ASZrvN/brSHRuY5SrF1zUYPdE7MNLJ0Hmhvz5biw8e2GoXFNpYmtVtV4noDoQmQSOc jUEndzByWksZRGgXWzQsKBMnKNkSGRUcchVqxznV1wsEckzrOcCf5R6m+S0c/u9iACIZ I4E9ugQeKoKQ4evUjGN2zsUaF5N8gPtPaK9C/EUPYL4AQX6NAdRJXc6/Bw+hXMsaDKFG ANfo4wVlz5UD3IGi8wk18R8jSIrc7LOCiy84oTbr/ugDgcLalHi4Yl7pogmpfU9UuUvI hLAaiLybBot6XYk9oL9sC5vQbOZPn6WsXgSPPSGe4bAR7q7P9xQNvWOPQDChBH+OKh9i eYgg== X-Received: by 10.180.208.81 with SMTP id mc17mr58385wic.7.1408379805806; Mon, 18 Aug 2014 09:36:45 -0700 (PDT) Received: from dell-14z ([37.162.188.232]) by mx.google.com with ESMTPSA id s4sm34174846wik.23.2014.08.18.09.36.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 18 Aug 2014 09:36:45 -0700 (PDT) References: <87ppg75xw4.fsf@gmail.com> <87mwbb5fms.fsf@gmail.com> <87sil2s27d.fsf@gmail.com> From: Thierry Volpiatto To: Stefan Monnier Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. Date: Mon, 18 Aug 2014 18:24:34 +0200 In-reply-to: Message-ID: <877g25zre7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18244 Cc: Glenn Morris , =?utf-8?Q?Fabi=C3=A1n_E=2E_Gallina?= , 18244@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Monnier writes: > Thierry said: >> Also the (annoying) warning message about setting local vars while >> let-bound can be easily avoided: > > I know the kind of message you're talking about, but I don't know when > it occurs. Do you have a recipe? It occur in the following code at beginning of `inferior-python-mode' > > >> ,----[ python.el, inferior-python-mode ] >> | (let ((interpreter python-shell-interpreter) >> | (args python-shell-interpreter-args)) >> | (when python-shell--parent-buffer >> | (python-util-clone-local-variables python-shell--parent-buffer)) >> | ;; Users can override default values for these vars when calling >> | ;; `run-python'. This ensures new values let-bound in >> | ;; `python-shell-make-comint' are locally set. >> | (set (make-local-variable 'python-shell-interpreter) interpreter) >> | (set (make-local-variable 'python-shell-interpreter-args) args)) >> | [...] >> `---- > > Not sure if someone installed your code already or what, but the above > looks identical to the current code. Am I missing something? Yes :-) it is not my code but the current code where the change have to occur. IMO what you need is: Remove the let-binding completely and use only: (set (make-local-variable 'python-shell-interpreter) python-shell-interpreter) (set (make-local-variable 'python-shell-interpreter-args) python-shell-interpreter-args) But maybe I am wrong, I am not familiar with python.el. @@ -2369,9 +2369,7 @@ variable. - (let ((interpreter python-shell-interpreter) - (args python-shell-interpreter-args)) - (when python-shell--parent-buffer - (python-util-clone-local-variables python-shell--parent-buffer)) - ;; Users can override default values for these vars when calling - ;; `run-python'. This ensures new values let-bound in - ;; `python-shell-make-comint' are locally set. - (set (make-local-variable 'python-shell-interpreter) interpreter) - (set (make-local-variable 'python-shell-interpreter-args) args)) + (set (make-local-variable 'python-shell-interpreter) python-shell-interpreter) + (set (make-local-variable 'python-shell-interpreter-args) python-shell-interpreter-args) + (when python-shell--parent-buffer + (python-util-clone-local-variables python-shell--parent-buffer)) + ;; Users can override default values for these vars when calling + ;; `run-python'. This ensures new values let-bound in + ;; `python-shell-make-comint' are locally set. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 18 14:27:48 2014 Received: (at 18244) by debbugs.gnu.org; 18 Aug 2014 18:27:48 +0000 Received: from localhost ([127.0.0.1]:46426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJRel-0001yg-Hn for submit@debbugs.gnu.org; Mon, 18 Aug 2014 14:27:47 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:53237) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJRej-0001yW-DK for 18244@debbugs.gnu.org; Mon, 18 Aug 2014 14:27:45 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s7IIRhvp021385; Mon, 18 Aug 2014 14:27:43 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 8EAAAAE091; Mon, 18 Aug 2014 14:27:40 -0400 (EDT) From: Stefan Monnier To: Thierry Volpiatto Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. Message-ID: References: <87ppg75xw4.fsf@gmail.com> <87mwbb5fms.fsf@gmail.com> <87sil2s27d.fsf@gmail.com> <877g25zre7.fsf@gmail.com> Date: Mon, 18 Aug 2014 14:27:40 -0400 In-Reply-To: <877g25zre7.fsf@gmail.com> (Thierry Volpiatto's message of "Mon, 18 Aug 2014 18:24:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5038=0 X-NAI-Spam-Version: 2.3.0.9378 : core <5038> : inlines <1187> : streams <1267110> : uri <1804089> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 18244 Cc: Glenn Morris , "=?windows-1252?Q?Fabi=E1n?= E. Gallina" , 18244@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.0 (--) > Remove the let-binding completely and use only: > (set (make-local-variable 'python-shell-interpreter) python-shell-interpreter) > (set (make-local-variable 'python-shell-interpreter-args) python-shell-interpreter-args) I can't see why that would help. This removes let-bindings of `args' and `interpreter' but these vars are never made buffer-local (hopefully), so the warning can't be about these vars being made buffer-local while they're let-bound. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 19 01:47:14 2014 Received: (at 18244) by debbugs.gnu.org; 19 Aug 2014 05:47:14 +0000 Received: from localhost ([127.0.0.1]:46908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJcGI-0003Q2-0X for submit@debbugs.gnu.org; Tue, 19 Aug 2014 01:47:14 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:34208) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJcGF-0003Pp-AJ for 18244@debbugs.gnu.org; Tue, 19 Aug 2014 01:47:12 -0400 Received: by mail-wg0-f49.google.com with SMTP id k14so6006136wgh.32 for <18244@debbugs.gnu.org>; Mon, 18 Aug 2014 22:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=oIUTgObrig12DD48gwT3LV6aUVGIIXa4X7J7qZ6X71U=; b=rq31sxa8KiaE+BftacwPE/tkMv6fV6yX6aXyK+z5eNLRfmAyXsT/KhYloreNXxNEN0 KFBqYCWy8uePAZS8dFFTOGHM8CE4+MasVhjiLEAZzvas1P54Zvyy8grWx7aYKkjXJk3I vYHXvbY30gujCUQ3cpHkgBYimX4kFkphsRCUQ2lIk7jslwO8wKYo+ZqBi7c4fzyD44wf sS2N9y5DvUqbuQcumsf0mzjIYmap7HOKiEXO0LQP2K/B5IvKDLHo5+hT/p71i7CtpXlg +Yb5sCEF8L/x520dQdh6qahcrbBa1Xy63SyglINU/ajRgokdvK+kFlrqIWj+FEQ/yPDV lyAQ== X-Received: by 10.194.62.67 with SMTP id w3mr46883390wjr.32.1408427225480; Mon, 18 Aug 2014 22:47:05 -0700 (PDT) Received: from dell-14z ([37.162.228.28]) by mx.google.com with ESMTPSA id r20sm45170062wik.0.2014.08.18.22.47.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 18 Aug 2014 22:47:04 -0700 (PDT) References: <87ppg75xw4.fsf@gmail.com> <87mwbb5fms.fsf@gmail.com> <87sil2s27d.fsf@gmail.com> <877g25zre7.fsf@gmail.com> From: Thierry Volpiatto To: Stefan Monnier Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. Date: Tue, 19 Aug 2014 07:44:41 +0200 In-reply-to: Message-ID: <87wqa5ghf1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18244 Cc: Glenn Morris , =?utf-8?Q?Fabi=C3=A1n_E=2E_Gallina?= , 18244@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Monnier writes: >> Remove the let-binding completely and use only: > >> (set (make-local-variable 'python-shell-interpreter) python-shell-interpreter) >> (set (make-local-variable 'python-shell-interpreter-args) python-shell-interpreter-args) > > I can't see why that would help. This removes let-bindings of `args' > and `interpreter' but these vars are never made buffer-local > (hopefully), so the warning can't be about these vars being made > buffer-local while they're let-bound. Indeed yes, I will have another look (more carefully this time). -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 19 10:27:12 2014 Received: (at submit) by debbugs.gnu.org; 19 Aug 2014 14:27:12 +0000 Received: from localhost ([127.0.0.1]:47501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJkNT-0000jv-Ka for submit@debbugs.gnu.org; Tue, 19 Aug 2014 10:27:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53785) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJkNR-0000jg-Bi for submit@debbugs.gnu.org; Tue, 19 Aug 2014 10:27:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJkNC-0004eS-6s for submit@debbugs.gnu.org; Tue, 19 Aug 2014 10:27:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkNC-0004eK-2i for submit@debbugs.gnu.org; Tue, 19 Aug 2014 10:26:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkN4-0002Fl-Gd for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2014 10:26:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJkMx-0004Gl-1C for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2014 10:26:46 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:53317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkMw-0004Ce-NO for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2014 10:26:38 -0400 Received: from [192.168.178.32] (brln-4dba582a.pool.mediaWays.net [77.186.88.42]) by mrelayeu.kundenserver.de (node=mreue102) with ESMTP (Nemesis) id 0LhvjW-1WWx5d3iXS-00n9yO; Tue, 19 Aug 2014 16:26:36 +0200 Message-ID: <53F35E80.8090301@easy-emacs.de> Date: Tue, 19 Aug 2014 16:26:08 +0200 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.7.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. References: <87ppg75xw4.fsf@gmail.com> <87mwbb5fms.fsf@gmail.com> <87sil2s27d.fsf@gmail.com> <877g25zre7.fsf@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:9t/ZQGssxCiwnKNIJjSv3LSUUBX8tGeMyiD113CXQ3O tRVRIrC850jJ5ptrM3tmptIlC1hZwHxL4Eb8h3VsObSjl10gPM CSqw3J6z4Zxv8NUjAOvTO7Q52v56CQQZgZ46efdxOvMB1NfKqg zpMXWQGESrUevXrcoGVycRux1LU0HckKJ2bXgmMceq/eS0M6bW 2zJm7MQf9/1ZxH0JRg+qnL2XsHAVRbi3enIukjR3i7ns8W4Pxx R23YsWvVToXMkwuRfsztRgj1RuXKNquj/J+nhnvGljO27ls4zq fEIU1i/SDrI2xSFS5fPN22WVUez6/kSiiV58bGdrYto1dUu51R Lmc5I1kNjHHxX5NLtZXNraDXBx8eWv7jNhXQNif6b X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) On 18.08.2014 20:27, Stefan Monnier wrote: >> Remove the let-binding completely and use only: > >> (set (make-local-variable 'python-shell-interpreter) python-shell-interpreter) >> (set (make-local-variable 'python-shell-interpreter-args) python-shell-interpreter-args) > > I can't see why that would help. This removes let-bindings of `args' > and `interpreter' but these vars are never made buffer-local > (hopefully), so the warning can't be about these vars being made > buffer-local while they're let-bound. > > > Stefan > > > > Here some messages from M-x run-python RET Get the first and second with latest pretest 24.3.93.1, but not before: Making python-shell-interpreter local to *Python* while let-bound! Making python-shell-interpreter-args local to *Python* while let-bound! Sent python-shell-completion-setup-code Sent python-ffap-setup-code Sent python-eldoc-setup-code You can run the command `run-python' with C-c C-p Sent python-eldoc-setup-code Mark set Maybe of interest here?, Andreas From debbugs-submit-bounces@debbugs.gnu.org Mon May 18 00:32:06 2015 Received: (at 18244) by debbugs.gnu.org; 18 May 2015 04:32:06 +0000 Received: from localhost ([127.0.0.1]:48483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuCij-0000g7-Rp for submit@debbugs.gnu.org; Mon, 18 May 2015 00:32:06 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:35837) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuCii-0000fc-2z for 18244@debbugs.gnu.org; Mon, 18 May 2015 00:32:04 -0400 Received: by wicmx19 with SMTP id mx19so63200122wic.0 for <18244@debbugs.gnu.org>; Sun, 17 May 2015 21:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; bh=OOKfIB0tFPZz2KehvG3OaOPVPYmY8EXLnNA5ct8Xfco=; b=iV5/7Ta4tBvoE/WP0WQGAks8g0dsp04nWYXnlS4KZrzFywsbKfTmmg1sl+A9kxbTRv sOX8eEU8LJyXcZyj5l/t3Xt1N/a9HynGYwvyGAurStLkcjS/wxFH+iGxMxNNGNCJKMzx 74BUAuKlU2SLjgHtSJIBIb61b1VfGC9Y221DvBRZvxAbUc9Qa8EQlPp9PpbG1A8rztrh I1tSKP8BnjuMRIb9YAsumXny/kUknUu+QSNPg5toxh7NNY7L2cymO45lXL/zbV5tjLtY wzqjD3EXf41xTOveZaF9h93WY1qhKrX2MsdN9qMuqwXCIjPWksbcJX+50oJV205E2DKE eeUw== X-Received: by 10.180.88.72 with SMTP id be8mr18497305wib.42.1431923518177; Sun, 17 May 2015 21:31:58 -0700 (PDT) Received: from dell-14z ([37.163.151.230]) by mx.google.com with ESMTPSA id bm9sm14851357wjc.21.2015.05.17.21.31.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 17 May 2015 21:31:56 -0700 (PDT) References: <87ppg75xw4.fsf@gmail.com> <87mwbb5fms.fsf@gmail.com> <87sil2s27d.fsf@gmail.com> <877g25zre7.fsf@gmail.com> <87wqa5ghf1.fsf@gmail.com> From: Thierry Volpiatto To: Stefan Monnier Subject: Re: bug#18244: 24.3.92; Error with semantic-mode when python buffers are present. In-reply-to: <87wqa5ghf1.fsf@gmail.com> Date: Mon, 18 May 2015 06:31:50 +0200 Message-ID: <87r3qey095.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18244 Cc: Glenn Morris , =?utf-8?Q?Fabi=C3=A1n_E=2E_Gallina?= , 18244@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Thierry Volpiatto writes: > Stefan Monnier writes: > >>> Remove the let-binding completely and use only: >> >>> (set (make-local-variable 'python-shell-interpreter) python-shell-interpreter) >>> (set (make-local-variable 'python-shell-interpreter-args) python-shell-interpreter-args) >> >> I can't see why that would help. This removes let-bindings of `args' >> and `interpreter' but these vars are never made buffer-local >> (hopefully), so the warning can't be about these vars being made >> buffer-local while they're let-bound. > > Indeed yes, I will have another look (more carefully this time). I see this have not been fixed, still have warnings about python-shell-interpreter and python-shell-interpreter-args made local while let-bound when opening a python file. Using the following patch fix the problem, but as I am not familiar with pyhon.el, please review. Changes from HEAD to working tree 1 file changed, 6 insertions(+), 18 deletions(-) lisp/progmodes/python.el | 24 ++++++------------------ Modified lisp/progmodes/python.el diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 4b0a028..1b4cf2f 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2496,15 +2496,8 @@ initialization of the interpreter via `python-shell-setup-codes' variable. \(Type \\[describe-mode] in the process buffer for a list of commands.)" - (let ((interpreter python-shell-interpreter) - (args python-shell-interpreter-args)) - (when python-shell--parent-buffer - (python-util-clone-local-variables python-shell--parent-buffer)) - ;; Users can override default values for these vars when calling - ;; `run-python'. This ensures new values let-bound in - ;; `python-shell-make-comint' are locally set. - (set (make-local-variable 'python-shell-interpreter) interpreter) - (set (make-local-variable 'python-shell-interpreter-args) args)) + (when python-shell--parent-buffer + (python-util-clone-local-variables python-shell--parent-buffer)) (set (make-local-variable 'python-shell--prompt-calculated-input-regexp) nil) (set (make-local-variable 'python-shell--prompt-calculated-output-regexp) nil) (python-shell-prompt-set-calculated-regexps) @@ -2553,16 +2546,11 @@ killed." (buffer (apply #'make-comint-in-buffer proc-name proc-buffer-name interpreter nil args)) (python-shell--parent-buffer (current-buffer)) - (process (get-buffer-process buffer)) - ;; As the user may have overridden default values for - ;; these vars on `run-python', let-binding them allows - ;; to have the new right values in all setup code - ;; that's is done in `inferior-python-mode', which is - ;; important, especially for prompt detection. - (python-shell-interpreter interpreter) - (python-shell-interpreter-args - (mapconcat #'identity args " "))) + (process (get-buffer-process buffer))) (with-current-buffer buffer + (set (make-local-variable 'python-shell-interpreter) interpreter) + (set (make-local-variable 'python-shell-interpreter-args) + (mapconcat #'identity args " ")) (inferior-python-mode)) (when show (display-buffer buffer)) (and internal (set-process-query-on-exit-flag process nil)))) -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 06 01:36:17 2015 Received: (at 18244-done) by debbugs.gnu.org; 6 Jul 2015 05:36:17 +0000 Received: from localhost ([127.0.0.1]:41335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBz4j-0004bS-B4 for submit@debbugs.gnu.org; Mon, 06 Jul 2015 01:36:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44588) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBz4g-0004b9-Vn for 18244-done@debbugs.gnu.org; Mon, 06 Jul 2015 01:36:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBz4Y-0002Q0-Gf for 18244-done@debbugs.gnu.org; Mon, 06 Jul 2015 01:36:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBz4Y-0002Pw-E1 for 18244-done@debbugs.gnu.org; Mon, 06 Jul 2015 01:36:06 -0400 Received: from [190.246.172.180] (port=51073 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZBz4X-0003Xf-Q3 for 18244-done@debbugs.gnu.org; Mon, 06 Jul 2015 01:36:06 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 18244-done@debbugs.gnu.org Subject: 24.3.92; Error with semantic-mode when python buffers are present. Date: Mon, 06 Jul 2015 02:36:03 -0300 Message-ID: <8738114zlo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 18244-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Fixed at f3400f4 in the master branch. -- Thanks, Fabi=C3=A1n. From unknown Mon Aug 11 21:13:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 03 Aug 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator