From unknown Sun Aug 17 22:00:31 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#45679 <45679@debbugs.gnu.org> To: bug#45679 <45679@debbugs.gnu.org> Subject: Status: 28.0.50; python-mode variable font locking is inconsistent Reply-To: bug#45679 <45679@debbugs.gnu.org> Date: Mon, 18 Aug 2025 05:00:31 +0000 retitle 45679 28.0.50; python-mode variable font locking is inconsistent reassign 45679 emacs submitter 45679 Doug Davis severity 45679 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 05 16:07:26 2021 Received: (at submit) by debbugs.gnu.org; 5 Jan 2021 21:07:26 +0000 Received: from localhost ([127.0.0.1]:42814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwtY5-0006qD-Jb for submit@debbugs.gnu.org; Tue, 05 Jan 2021 16:07:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:60400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwtY4-0006q4-63 for submit@debbugs.gnu.org; Tue, 05 Jan 2021 16:07:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwtY4-00026f-0l for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2021 16:07:24 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:49441) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwtY1-0003zB-9J for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2021 16:07:23 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 271AC5C00E6; Tue, 5 Jan 2021 16:07:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 05 Jan 2021 16:07:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=XUoxCuSFqUirNJ7kT5DKUrhncQYWBf7h5VVbx3xQO7Q=; b=nzaKgUfQ B0jvqbIKZunpk/ktU+LbxW/BUofo+qynHlcqAT50EJLGGK6DTFGA7FkYU0Pp0Qzm Vd/swSSKZ5UgDGH35lV1kRroXnP5QlCz1NBVgYq4Wb5fWYvs5FGrq4Sf5SVrp0xf UAU87fujFNI8WMPCLfuk9ArphsIstliP1YhtSAdqjYeU+KkjQxfKWu6hKO29o6+Y p8Ft057607U70cj88osfwk+dSljtIG7H6NknGvoPcNs4r6GLV/L20Gbjd9KvgQJt bAnNbza5Ipd94paxOHY8EDjWuxR0SA5uBsBrrRAgxZft360AObv4zhDQCu0IVlDM yEH9spSW5P3hUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=XUoxCuSFqUirNJ7kT5DKUrhncQYWB f7h5VVbx3xQO7Q=; b=devIk3UmQwDm4yCRd931rrOO/tj1d2h/82yEn5kk9Wcn8 XIo8c4IRaY3/dB4preIiYMFGru5eUw8+IosZFYmoB5dSOjtNOxVffMPhULZuGwSE YXc37AEImYa/wXzIei4iWvqBZR+ykohdDtCHMkWcjqCsnFlWxmZ4owc9SQEytgpS b1qnstwRL3WBwMAnpS3k6a7/iGkn+QB1C0ppwzwbBllFuLV4UXv0f+fELy2iAk5q TAagKP53wfMTUKz2GRJa5DXWEGrrD7K9JIwvNvQZU9/8DnV8Dbuh//9rOSptShAF 3QoVJHStX6FdF1es8Q14EEqKIDHLczeezsyyF5AOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefjedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtsehttdertd dtredtnecuhfhrohhmpeffohhughcuffgrvhhishcuoeguuggrvhhishesuggurghvihhs rdhioheqnecuggftrfgrthhtvghrnhepgfefgfffffdvieffvefhgeekudegffeuuedvje evuefgveekfedvtedvleekieejnecuffhomhgrihhnpegvmhgrtghsrdgrphhpnecukfhp peejtddrudegtddrudeghedruddvieenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpeguuggrvhhishesuggurghvihhsrdhioh X-ME-Proxy: Received: from localhost (70-140-145-126.lightspeed.hstntx.sbcglobal.net [70.140.145.126]) by mail.messagingengine.com (Postfix) with ESMTPA id 35F19108005B; Tue, 5 Jan 2021 16:07:18 -0500 (EST) User-agent: mu4e 1.4.10; emacs 28.0.50 From: Doug Davis To: bug-gnu-emacs@gnu.org Subject: 28.0.50; python-mode variable font locking is inconsistent Date: Tue, 05 Jan 2021 15:07:15 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.27; envelope-from=ddavis@ddavis.io; helo=out3-smtp.messagingengine.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 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, FILL_THIS_FORM_FRAUD_PHISH=0.334, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.6 (--) In python-mode I'm seeing inconsistent variable font locking in class and function definitions. The first variable in a class keeps the default face while the remaining variables get the variable face. In functions it's a bit more inconsistent. If I modify the text around a bugged variable the face is corrected. Below is a small example which recreated the behavior. I see it with both my full configuration loaded and with emacs -Q. I can reproduce on both GNU/Linux and macOS. #+begin_src python @dataclass class Student: """Described a student. Attributes ---------- name : str Full name idnum : int Identification number """ name: str = "" ## <--- 'name' is not given the variable face (keeps default) idnum: int = 0 #+end_src In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.2.0, NS appkit-2022.20 Version 11.1 (Build 20C69)) of 2021-01-02 built on top.local Repository revision: f14869cd70e61b1908ec88a5e3d4bf21c7d538a0 Repository branch: master Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.1 Configured using: 'configure --with-ns --with-json --with-xml2 --with-gnutls --with-modules --with-rsvg 'CFLAGS=-mtune=native -march=native -O3'' Configured features: JPEG TIFF GIF PNG RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Org Minor modes in effect: flyspell-mode: t global-git-commit-mode: t eros-mode: t pdf-occur-global-minor-mode: t yas-global-mode: t yas-minor-mode: t which-key-mode: t async-bytecomp-package-mode: t projectile-mode: t marginalia-mode: t selectrum-prescient-mode: t selectrum-mode: t recentf-mode: t show-paren-mode: t shell-dirtrack-mode: t global-auto-revert-mode: t whitespace-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t override-global-mode: t straight-use-package-mode: t straight-package-neutering-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-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 Load-path shadows: /Users/ddavis/.emacs.d/straight/build/jsonrpc/jsonrpc hides /Applications/Emacs.app/Contents/Resources/lisp/jsonrpc /Users/ddavis/.emacs.d/straight/build/xref/xref hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/xref /Users/ddavis/.emacs.d/straight/build/project/project hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/project /Users/ddavis/.emacs.d/straight/build/flymake/flymake hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/flymake /Users/ddavis/.emacs.d/straight/build/let-alist/let-alist hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/let-alist /Users/ddavis/.emacs.d/straight/build/eldoc/eldoc hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eldoc Features: (shadow sort mail-extr emacsbug blacken python tramp-sh flyspell ispell org-element avl-tree ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe ol-docview ol-bibtex bibtex ol-bbdb ol-w3m gnus-topic nndraft nnmh utf-7 gnutls nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader mu4e desktop frameset mu4e-org mu4e-main mu4e-view mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 smtpmail mu4e-mark mu4e-message flow-fill mu4e-proc mu4e-utils mu4e-lists hl-line mu4e-vars mu4e-meta magit-extras magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff magit-core magit-autorevert magit-margin magit-transient magit-process magit-mode git-commit magit-git magit-section magit-utils log-edit pcvs-util add-log with-editor vc-git diff-mode char-fold eros company-oddmuse company-keywords company-etags etags fileloop generator company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-cmake company-semantic company-template company-bbdb company-capf rainbow-delimiters init sendmail message rfc822 mml mml-sec gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader w3m doc-view timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-favicon w3m-image tab-line w3m-proc w3m-util w3m-autoloads ox-hugo-autoloads pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch let-alist pdf-misc pdf-tools package url-handlers pdf-view jka-compr pdf-cache pdf-info tq pdf-util image-mode exif pdf-tools-autoloads tablist-autoloads lsp-latex lsp-latex-autoloads auctex-autoloads tex-site erc-hl-nicks-autoloads auth-source-pass circe-autoloads elfeed-autoloads gruvbox-theme gruvbox autothemer gruvbox-autoloads autothemer-autoloads helpful-autoloads elisp-refs-autoloads ace-window-autoloads avy-autoloads yaml-mode-autoloads iedit-autoloads yasnippet-snippets-autoloads yasnippet-snippets yasnippet yasnippet-autoloads which-key which-key-autoloads rainbow-delimiters-autoloads cider-autoloads sesman-autoloads queue-autoloads parseedn-autoloads parseclj-autoloads a-autoloads clojure-mode-autoloads blacken-autoloads pyvenv eshell pyvenv-autoloads modern-cpp-font-lock-autoloads clang-format-autoloads eldoc-box-autoloads eglot-autoloads project-autoloads xref-autoloads flymake-autoloads eldoc-autoloads jsonrpc-autoloads lsp-ui lsp-ui-flycheck lsp-ui-doc goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideline face-remap lsp-ui-autoloads lsp-pyls lsp-mode lsp-protocol xref spinner network-stream puny nsm rmc markdown-mode color lv inline ht f s ewoc dash-functional bindat lsp-mode-autoloads lv-autoloads markdown-mode-autoloads spinner-autoloads ht-autoloads f-autoloads s-autoloads dash-functional-autoloads flycheck rx dash flycheck-autoloads let-alist-autoloads rg rg-info-hack rg-menu transient async-bytecomp async rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header cus-edit cus-start cus-load rg-autoloads wgrep-autoloads magit-autoloads git-commit-autoloads with-editor-autoloads transient-autoloads dash-autoloads async-autoloads company pcase company-autoloads projectile grep ibuf-ext ibuffer ibuffer-loaddefs projectile-autoloads pkg-info-autoloads epl-autoloads consult-selectrum consult-selectrum-autoloads consult imenu compile bookmark text-property-search pp consult-autoloads marginalia marginalia-autoloads selectrum-prescient prescient selectrum-prescient-autoloads prescient-autoloads selectrum minibuf-eldef crm selectrum-autoloads visual-fill-column visual-fill-column-autoloads crux tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp thingatpt crux-autoloads all-the-icons-dired-autoloads all-the-icons-autoloads memoize-autoloads exec-path-from-shell exec-path-from-shell-autoloads finder-inf eros-autoloads recentf tree-widget wid-edit cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs sh-script smie executable browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap paren dired dired-loaddefs vc vc-dispatcher epa-file epa derived epg epg-config auth-source eieio eieio-core eieio-loaddefs password-cache json map term disp-table shell ehelp esh-mode esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util autorevert filenotify whitespace project org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities time-date noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs display-line-numbers edmacro kmacro server straight-x cl-seq use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core use-package-autoloads bind-key-autoloads straight-autoloads info cl-extra help-mode easymenu seq byte-opt straight subr-x cl-macs gv cl-loaddefs cl-lib bytecomp byte-compile cconv early-init iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 623239 653268) (symbols 48 54792 837) (strings 32 192401 97666) (string-bytes 1 6740188) (vectors 16 90452) (vector-slots 8 1093967 823574) (floats 8 579 2234) (intervals 56 690 334) (buffers 984 18)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 05 17:51:12 2021 Received: (at 45679) by debbugs.gnu.org; 5 Jan 2021 22:51:12 +0000 Received: from localhost ([127.0.0.1]:42906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwvAW-00019D-Di for submit@debbugs.gnu.org; Tue, 05 Jan 2021 17:51:12 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwvAU-00018z-9K for 45679@debbugs.gnu.org; Tue, 05 Jan 2021 17:51:11 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C0E2D5C0198 for <45679@debbugs.gnu.org>; Tue, 5 Jan 2021 17:51:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 05 Jan 2021 17:51:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=lr+rp73If7VSABoQqKFPeO3MCj Js/H/2JokWpYGAeP0=; b=EdzWm9EDCnH6OA9PZQVUoDmZOS+ErnyFpm2Wiyvkm3 gt6w8hQ2yTDtaB4V5XT7XF4RS/Ywm8lr/SAYL+5Oksl3psQYH+85XGhCXX5j4o3T Cyj3CjGPzrjZP7wg7XdN5faadSZnkgGszyh+iLPbsSRiL0/cnZRn7uF1kQlx4KjO XO1VTlu7AleVu2MWdHnJgyMpJR3LlHykyurswXz8CYTv2BIq5RwxaKrkNj0AtStM BouuYc3w/41j3MeMQOBOHicOHgKYBt4LnAaYl5nd95akC1eAiygvAbwB0zisjJHN APaJrEuAO3HvIMtuEVynArSJE765RsVFBUjNRiWhddfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lr+rp7 3If7VSABoQqKFPeO3MCjJs/H/2JokWpYGAeP0=; b=AFSPNUexD0slMBjzWbHUCT 21ln9RyksYyq9VgITDdeyWGNTDpomgD3UDBDxL4dJowbo8MdPLJViUOvEym1mbMS MqB1LxUFXF+aN72xyswlSQudIvOtCPqDoKdup7uCoULvkvnwZUMqWLReNKWE0+4s xr7LZoPevs2QJaR2cs/22dKZ/hmZnzUSFd57ZxE0ghW4rYUOqJFZd5U+2Hy08Ow9 Oh0ljyayHXMmFe8c5+M3rgW6Ap2yf0qJtlqW1c6PHmDw4wG/CYTAhKtfCxehxtAY WI9zK8iVpNiafUWElSbe2qFhy6h5+VR01st3NZJASBlOwBUh2GWU77h7r4qaO/AA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefkedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgesthdtre dttdertdenucfhrhhomhepffhouhhgucffrghvihhsuceouggurghvihhsseguuggrvhhi shdrihhoqeenucggtffrrghtthgvrhhnpeegtdevffduiedtleevveekieettdelheegud egleduhfehjeffkeejffegffeljeenucfkphepjedtrddugedtrddugeehrdduvdeinecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggurghvih hsseguuggrvhhishdrihho X-ME-Proxy: Received: from localhost (70-140-145-126.lightspeed.hstntx.sbcglobal.net [70.140.145.126]) by mail.messagingengine.com (Postfix) with ESMTPA id 2BB43108005F for <45679@debbugs.gnu.org>; Tue, 5 Jan 2021 17:51:04 -0500 (EST) From: Doug Davis To: 45679@debbugs.gnu.org Subject: Re: bug#45679: 28.0.50; python-mode variable font locking is inconsistent References: Date: Tue, 05 Jan 2021 16:51:02 -0600 In-Reply-To: (Doug Davis's message of "Tue, 05 Jan 2021 15:07:15 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45679 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.7 (-) Doug Davis writes: > In python-mode I'm seeing inconsistent variable font locking in class > and function definitions. The first variable in a class keeps the > default face while the remaining variables get the variable face. In > functions it's a bit more inconsistent. If I modify the text around a > bugged variable the face is corrected. Below is a small example which > recreated the behavior. I see it with both my full configuration loaded > and with emacs -Q. I can reproduce on both GNU/Linux and macOS. Just to expand on this a bit-- the font locking appears to cycle between the variable name face and the default face. Making changes inside of a function is triggering some variables to rotate between the two faces. I don't yet see an obvious pattern. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 05 18:04:44 2021 Received: (at 45679) by debbugs.gnu.org; 5 Jan 2021 23:04:44 +0000 Received: from localhost ([127.0.0.1]:42918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwvNc-0001T6-1q for submit@debbugs.gnu.org; Tue, 05 Jan 2021 18:04:44 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:42399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwvNa-0001St-J0 for 45679@debbugs.gnu.org; Tue, 05 Jan 2021 18:04:43 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7E7AA5C0136 for <45679@debbugs.gnu.org>; Tue, 5 Jan 2021 18:04:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 05 Jan 2021 18:04:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=p3C1oaKSVEaOCGZvEiqsscTct4 S9H0rvitcNI46BVus=; b=WNzfabVMhI6vJs8gtuiIUsKQrrzxD15EYIztDxRKUA OlYZtYul4Aonm2w9EG+g/cYYgKtEbqOdi1Z/CmnxrZ/zfS28VZDB31LFgk1Oaxn7 ZTlI/D19xgTAEcY8Ve/ky1qXlSxZ4a9a8yE3AnM02pqAAXrzEDXdu7HdybQuUEss tub3ui09FgaAMAIfTel8X+PMZbnW1yRlpICUNEqKDUxrObEkZitv6IC4g5FYo/1Y KGEndVBNKGrUuqhFnLOv0exDmphUOYKqzffHD7IeLWYlR1h+T6s8EvX3hCLLbMZY PUBiSGVMCnsc4kud30zTu39mf5Z3G0pJxzAh+Jonr4uA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=p3C1oa KSVEaOCGZvEiqsscTct4S9H0rvitcNI46BVus=; b=o8diumRLUlDmpzCpJIC5WL U6qe8c+mX/JvllA2gFn+L6dzWhFV07lMNxyurPuZoVPLwBJoH+HHVkVeKdRW5UU2 0e1e95rJ5z/+UHLhO4R3ck8R/PiqUPTUt1R6QoC7/9IdX81C6hq8zFhz0TLsrIRv MLEmxRYLUSP7fMYb7rLXDj6C4yu4sNOtQAj7h+P7736DeA7ZzPdEyeaPYEIOPnHh WjdyBN4dTa70sENUQFxH4NjYYlRSNsqNKzmGhKc6Tf+t0YPTq+sKB76VAC7AM0Vf UBaqESV0caVEsWGf90UKOAUTpzhSTI+nEKjZqFSy8Hv92PpmDLar/COQxcMEVh/Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefkedgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgesthdtre dttdertdenucfhrhhomhepffhouhhgucffrghvihhsuceouggurghvihhsseguuggrvhhi shdrihhoqeenucggtffrrghtthgvrhhnpeegtdevffduiedtleevveekieettdelheegud egleduhfehjeffkeejffegffeljeenucfkphepjedtrddugedtrddugeehrdduvdeinecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggurghvih hsseguuggrvhhishdrihho X-ME-Proxy: Received: from localhost (70-140-145-126.lightspeed.hstntx.sbcglobal.net [70.140.145.126]) by mail.messagingengine.com (Postfix) with ESMTPA id E308D1080057 for <45679@debbugs.gnu.org>; Tue, 5 Jan 2021 18:04:35 -0500 (EST) From: Doug Davis To: 45679@debbugs.gnu.org Subject: Re: bug#45679: 28.0.50; python-mode variable font locking is inconsistent References: Date: Tue, 05 Jan 2021 17:04:34 -0600 In-Reply-To: (Doug Davis's message of "Tue, 05 Jan 2021 16:51:02 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45679 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.7 (-) My guess is b2ce94fa5e introduced the bug. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 13 12:44:47 2021 Received: (at 45679) by debbugs.gnu.org; 13 Jan 2021 17:44:48 +0000 Received: from localhost ([127.0.0.1]:36511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzkCN-0008LQ-My for submit@debbugs.gnu.org; Wed, 13 Jan 2021 12:44:47 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:32931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzkCL-0008LD-HK for 45679@debbugs.gnu.org; Wed, 13 Jan 2021 12:44:46 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 32A085C0152 for <45679@debbugs.gnu.org>; Wed, 13 Jan 2021 12:44:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 13 Jan 2021 12:44:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=Ul8ZlYIHDUuPtGfmdoajnhdNiv l4BNNnJnYwKN7FiEA=; b=HMKmyNGnCIM/Lp8VCZnGuUscbE6NvicEWRGcuOyMBK FbYBwinEdtzuVYKDKVqBR6JmakDLd4sb5x78Go2QJ+LdBQyqFuoq3cOpZOAJCxsT fIDHz26nX3w9dM9LcS1cqWZxHBe9UXY0cJL6lt19dxUSStJDuzBfHqieJUExheOX ux6uoDOlLYAQNz5CYHTRjc5zRpQYkMFq42Pk6hWLiIZRM7KPG4pj+/5jpYOa65HK D4CYLsDEAqpX5J0WY10del06B6M2cpMiHLpoIvC3TUYF2atw82k1ThrVVhI6jQPb 9tY6dD3g3mWYixFziPmw6TX2y+QL4pApQBacjD8QtgqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Ul8ZlY IHDUuPtGfmdoajnhdNivl4BNNnJnYwKN7FiEA=; b=Um+uwoc2pkwKj6aFIxc+pD Vc6jVwrRd/MAfPSReJBIFwoNbwVQS8VmiC8nWLJxw7hXU+PFQGASaxMIW4g5pJ2d JvmNoX7SOlA0nWoWsL8eGbHzqmCun7i3WBkY211oyqhuDjMHjboX4CL9KBgpkWY8 oXQHDUJm8WQcTHjKpDVH2nSWRZD40Kbf3fvuQcI82QAo1U8mTS870kboqrkeisYe /4ihBCHQS779nRAZRXWVyah+uKJ6dpadj98YY1aZSTSgl+ZabHYtCznKMmAW6//e pR6NdQla9UXPMSKqk7wydWRNaPRVjWjuZRqsOmwxN94NbSbDqGbEu5Qvl3oq10cA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedukedrtdefgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgesthdtre dttdertdenucfhrhhomhepffhouhhgucffrghvihhsuceouggurghvihhsseguuggrvhhi shdrihhoqeenucggtffrrghtthgvrhhnpeegtdevffduiedtleevveekieettdelheegud egleduhfehjeffkeejffegffeljeenucfkphepvdegrdelkedrjeeirdektdenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguuggrvhhishesug gurghvihhsrdhioh X-ME-Proxy: Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 9F32724005D for <45679@debbugs.gnu.org>; Wed, 13 Jan 2021 12:44:39 -0500 (EST) From: Doug Davis To: 45679@debbugs.gnu.org Subject: Re: bug#45679: 28.0.50; python-mode variable font locking is inconsistent References: Date: Wed, 13 Jan 2021 12:44:37 -0500 In-Reply-To: (Doug Davis's message of "Tue, 05 Jan 2021 17:04:34 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45679 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.7 (-) Doug Davis writes: > My guess is b2ce94fa5e introduced the bug. My first guess was wrong. I tested python.el after a few commits over the last few months and it was after 296e4dd and e7b4f46 where the bug pops up. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 28 19:47:46 2021 Received: (at 45679) by debbugs.gnu.org; 1 Mar 2021 00:47:46 +0000 Received: from localhost ([127.0.0.1]:47577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGWiw-0007xe-DI for submit@debbugs.gnu.org; Sun, 28 Feb 2021 19:47:46 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:53691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGWiq-0007xM-8z for 45679@debbugs.gnu.org; Sun, 28 Feb 2021 19:47:44 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 937246F4 for <45679@debbugs.gnu.org>; Sun, 28 Feb 2021 19:47:33 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 28 Feb 2021 19:47:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=BLxD1hG7lRvur/L6svrr1TcdOH BbsXMPCrINlR28QtE=; b=wSP+H7pGy1F7m4hgNX4Nr4s+KRYdxpL+3YvmwCE5vn aFZPyo4Ja5rluinp7f2PfIpyyYnQXpsfHUOcV5bcqVgrRkC/Rlx1lZrQNWO5Yv+A UmxnYhW203Z4WA3/XHMl6nbaCpwmYA6MHVJURDVWvUYK5b1xzS0aDG+aVLX91Ejs epnSx3mOKRfRYqOLsnEu7JXymFTQqc0rv1eaKtLmKxrKL0tjeHuDEUF9SP5Ve+5+ pcbMmbYmop8hFPFXENVtuH/0xFTa4qd7DNmWw0QgZmVlzhb8CIX/3ubKmvcCag1Y aDd63GV9ZutMehxF+pTqmGxg3YrSAEAmw/BBYQhYcTxw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=BLxD1h G7lRvur/L6svrr1TcdOHBbsXMPCrINlR28QtE=; b=G5q6oa7IQZyz4wsHDo1CLP e2dNGMJgwH9FxwuhbntYyGA6Xy3hgrNlFbMBILrgOne52CsRH5x34BaWoQ9ePkSt KvelONkp23dsyv6EjHgGcINbvcgIFRvXanR7Ednrp1lMEADNd+l4no3/VjRG6gDG X25VozOjZAyelnKZIzakZsmgoVinoPCVlOtbq9b3Re2sK/V5gr7qzAubKrTIXB64 +umLkbOXta0okbDVpQ7VsAX5fGzceZ3Or88WXw2MuAWL2tWh4bQ1Jqz/0Jbi2mBq 8caFPMxeGpD9nbS60jfM6KQAtUUrcOjM2xhu0/CLJ7D4QSiY7qkJqwJ0zXID5uVA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrleejgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtsehttdertd dtredtnecuhfhrohhmpeffohhughcuffgrvhhishcuoeguuggrvhhishesuggurghvihhs rdhioheqnecuggftrfgrthhtvghrnhepgedtveffudeitdelveevkeeitedtleehgeduge eludfhheejffekjeffgeffleejnecukfhppedvgedrleekrdejiedrkedtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggurghvihhsseguug grvhhishdrihho X-ME-Proxy: Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id A7E751080054 for <45679@debbugs.gnu.org>; Sun, 28 Feb 2021 19:47:32 -0500 (EST) From: Doug Davis To: 45679@debbugs.gnu.org Subject: Re: bug#45679: 28.0.50; python-mode variable font locking is inconsistent References: Date: Sun, 28 Feb 2021 19:47:31 -0500 In-Reply-To: (Doug Davis's message of "Wed, 13 Jan 2021 12:44:37 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45679 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.7 (-) Its seems that the issue pops up when a function signature includes the trailing return type int: #+begin_src python def func(a, b) -> None: x = 5 y = 6 #+end_src has bad assignment font locking for "x = 5"; while this version: #+begin_src def func(a, b): x = 5 y = 6 #+end_src appears to have expected variable assignment font locking. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 28 19:55:37 2021 Received: (at 45679) by debbugs.gnu.org; 1 Mar 2021 00:55:37 +0000 Received: from localhost ([127.0.0.1]:47598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGWqX-00089A-Ah for submit@debbugs.gnu.org; Sun, 28 Feb 2021 19:55:37 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:40931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGWqW-00088y-7k for 45679@debbugs.gnu.org; Sun, 28 Feb 2021 19:55:36 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 68D585C2 for <45679@debbugs.gnu.org>; Sun, 28 Feb 2021 19:55:30 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 28 Feb 2021 19:55:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=WhDRkZIkJ7IQu5W3MsDG7MOaTs vgW6IGdCHDaTF+aPM=; b=NMa5c3dXhf2nK20FvhIYExuhMdGSkrr8vmibO9rAao hgzqf606Qtq+qfWaBCr2djgUviGF9HCPZyfVRXeJcE2oiS2KLdHpRmLjUtzyXHpx dG5Up3BKjpsIqqj2VdzyG1zgtgzZ0gcbb4zeWMaIoSMwlZKj9cqfPsThxLgDRWOU EaCULSGutU3glvaSXZuVcz9KFj8Hx0PoooADL4xY3kNHxjhZTeXSpAq3lzKi6edR Y/YW3VhugERydFWM9k7hXzlKFh2OD0XEKFScxqgN13UGvRIBtLYqAp7KtG+lM5je Uwl14qv3im29vlE3qjf9jqWVs6YW9i0Z8OgarYzu9blA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WhDRkZ IkJ7IQu5W3MsDG7MOaTsvgW6IGdCHDaTF+aPM=; b=vMsOOmecXP2UpMoYnW4yx2 GPDZet3jyZsdeMFQmo1XplaBlcIK/jooaPhxtLPMZtnCVLRVJBoiv0maAbv1oYjc p3WclK0PqykdtQnVrK4P/3D+nm+WCM2UMB5FjrumvWPbzBv3329l3/VR5odOUYDC 3dFksLg9q2sqYXaqOJANFFtU2MJt+b7M7YRVUJalB/r1iSgphxAp3pcun9Pkhssh +d8+iGFWd9yH8hrt4AyThLMZWc4rgo5vitTPk/+Tt5KjPoSgZ3e5l+0H3zQXASY7 9v863usnC6AVXdfuZwcW+pSb+9MznJLHgvgCEJXtAGf262UKrFPp3SaWBAGZLcFg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrleejgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtsehttdertd dtredtnecuhfhrohhmpeffohhughcuffgrvhhishcuoeguuggrvhhishesuggurghvihhs rdhioheqnecuggftrfgrthhtvghrnhepgedtveffudeitdelveevkeeitedtleehgeduge eludfhheejffekjeffgeffleejnecukfhppedvgedrleekrdejiedrkedtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggurghvihhsseguug grvhhishdrihho X-ME-Proxy: Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 9B48924005B for <45679@debbugs.gnu.org>; Sun, 28 Feb 2021 19:55:29 -0500 (EST) From: Doug Davis To: 45679@debbugs.gnu.org Subject: Re: bug#45679: 28.0.50; python-mode variable font locking is inconsistent References: Date: Sun, 28 Feb 2021 19:55:28 -0500 In-Reply-To: (Doug Davis's message of "Sun, 28 Feb 2021 19:47:31 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45679 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.7 (-) Doug Davis writes: Spoke too soon again; types for individual function arguments _also_ triggers the issue. Perhaps some recent changes (296e4dd15e3754fdddf70d33f2d630462d4b3309 and e7b4f465e8b2ec1c8d54a611db7eca44ae350711) associated with font locking (which appear to have been meant to add better support for the existence of type hits) should be reverted for now. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 28 20:03:49 2021 Received: (at 45679) by debbugs.gnu.org; 1 Mar 2021 01:03:49 +0000 Received: from localhost ([127.0.0.1]:47605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGWyT-0008LZ-8l for submit@debbugs.gnu.org; Sun, 28 Feb 2021 20:03:49 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:34361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGWyS-0008LN-6m for 45679@debbugs.gnu.org; Sun, 28 Feb 2021 20:03:48 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 769DF750 for <45679@debbugs.gnu.org>; Sun, 28 Feb 2021 20:03:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 28 Feb 2021 20:03:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=FFPE+0fKsb778q9eks1KS2X4jl LIHAlqjYHP40+Z/Cw=; b=fu9nt3lzdK4dYM9TaVdU0EE9V5Hob3kV+jIK2xdqeF 1bQJY80H0CcJSnq41LebHboqrgj/+kJcXpqWYquYHeGe6GUliVoVf/TE6XQMZ+YA fSUYJH2et7AGFV3I+lcsvn0W2CR/aoX3WIqM47mvhFNlwHISaWNZ0Dvq8BL+XN+E uDiBLkv2c8CsrDNKnBWEKNQxUXfQD8+gyLjMzx6HMtOit9Dmo85l4QrKSZL1Slxu SLUfobADzGAgafX98KWKpczH7C1l6RgiKTNYUHrQTVpsBIbXnEaM/QGl0z0I9Yb5 KpxHyLGgXNluxwomxf8EaMkRMLZNsvPcX74PgHEUJmFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=FFPE+0 fKsb778q9eks1KS2X4jlLIHAlqjYHP40+Z/Cw=; b=WRlMxyDtdonXC7aFJKPiSi x0L8PgeMMDkBIuQn6CdFxrNHKAbYULSoBbgc/vPRke0gjIqMuUGY7u5+I/tP5kW0 YqU+3F20Aiwf+sK+guEg1+secXvZnoDFQodyxj3TEpAVXmRneHWbMxLr2b97N/OX npa7HzAG8XlVf67bf/RIb/yYjAs9CKgHSpEPwm97/MExoR2XGQu5l1kjZ5qyZuOE q7wme08SWh4193ghwA0ZZgsXLKk7nscX9nq5761V09+J241V7RphLkoPhViyCK8J j1K9MdcMbiI1bxjFYCv+DAnfBDpeg3E644wsf4VVTEcttZQSTPFt+hMhWYfs3v6g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrleejgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtsehttdertd dtredtnecuhfhrohhmpeffohhughcuffgrvhhishcuoeguuggrvhhishesuggurghvihhs rdhioheqnecuggftrfgrthhtvghrnhepgedtveffudeitdelveevkeeitedtleehgeduge eludfhheejffekjeffgeffleejnecukfhppedvgedrleekrdejiedrkedtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggurghvihhsseguug grvhhishdrihho X-ME-Proxy: Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 590AB108005F for <45679@debbugs.gnu.org>; Sun, 28 Feb 2021 20:03:41 -0500 (EST) From: Doug Davis To: 45679@debbugs.gnu.org Subject: Re: bug#45679: 28.0.50; python-mode variable font locking is inconsistent References: Date: Sun, 28 Feb 2021 20:03:40 -0500 In-Reply-To: (Doug Davis's message of "Sun, 28 Feb 2021 19:55:28 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45679 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.7 (-) Doug Davis writes: > Spoke too soon again; types for individual function arguments _also_ > triggers the issue. Perhaps some recent changes > (296e4dd15e3754fdddf70d33f2d630462d4b3309 and > e7b4f465e8b2ec1c8d54a611db7eca44ae350711) associated with font locking > (which appear to have been meant to add better support for the existence > of type hits) should be reverted for now. And this is another commit that touches the font locking code (actually overwriting the two commits above): b2ce94fa5eecee0afd0e6237956cfb2b02b8bb0b From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 09:42:54 2022 Received: (at 45679) by debbugs.gnu.org; 16 May 2022 13:42:54 +0000 Received: from localhost ([127.0.0.1]:52160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqazt-00062u-Ph for submit@debbugs.gnu.org; Mon, 16 May 2022 09:42:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqazr-00062g-Pe for 45679@debbugs.gnu.org; Mon, 16 May 2022 09:42:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=S7Y7X2BsPvK+Gkq4MWKJse6Wc1vp0yhz7Xk+wdEkkNM=; b=YUeL/3ijHp4ums6Ou0Gnlc0LBO 3ue6xGWOIO6gCbujUXI2a0sl7cJGsOCBElGmJGUBVa0d896UjW3HY9gRHBtmn2JGOI+5CFBAPKU1m IrAfx8UKK3jP64qBqQ4koI1kIrfN286Q3mXGJk3J30j1LB9ohcmuptaR3Zey/TW+P2QU=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqazj-0005PC-KP; Mon, 16 May 2022 15:42:45 +0200 From: Lars Ingebrigtsen To: Doug Davis Subject: Re: bug#45679: 28.0.50; python-mode variable font locking is inconsistent References: Date: Mon, 16 May 2022 15:42:42 +0200 In-Reply-To: (Doug Davis's message of "Sun, 28 Feb 2021 19:47:31 -0500") Message-ID: <87ilq5egq5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Doug Davis writes: > Its seems that the issue pops up when a function signature includes the > trailing return type int: > > #+begin_src python > def func(a, b) -> None: > x = 5 > y = 6 > #+end_src > > has bad assignmen [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45679 Cc: 45679@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.3 (---) Doug Davis writes: > Its seems that the issue pops up when a function signature includes the > trailing return type int: > > #+begin_src python > def func(a, b) -> None: > x = 5 > y = 6 > #+end_src > > has bad assignment font locking for "x = 5"; while this version: > > #+begin_src > def func(a, b): > x = 5 > y = 6 > #+end_src > > appears to have expected variable assignment font locking. This should now be fixed (in a patch for bug#51362) in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 09:42:57 2022 Received: (at control) by debbugs.gnu.org; 16 May 2022 13:42:57 +0000 Received: from localhost ([127.0.0.1]:52163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqazx-00063C-17 for submit@debbugs.gnu.org; Mon, 16 May 2022 09:42:57 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqazv-00062l-Sj for control@debbugs.gnu.org; Mon, 16 May 2022 09:42:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XihEkYfaMpA+jYYs0A113Vx54JtPS+bohEMMIb9mL1k=; b=Ru2l11onP/wCzOy1zDQOzxaYQF YQ8VZY9FkaPX0mgTdT2vsfOPg0LpjGDYGkvEGKAnAovOwOrB9LCgEZu6AyY9VvaLRdUVn0TxaZ5sF o9L9ALzr3ToRBAgjYsicZZ2oVIT641bFffYY82+663sPo/cKHYcd+58lKlwfw+k3hLCU=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqazo-0005PK-77 for control@debbugs.gnu.org; Mon, 16 May 2022 15:42:50 +0200 Date: Mon, 16 May 2022 15:42:47 +0200 Message-Id: <87h75pegq0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45679 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 45679 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.3 (---) close 45679 29.1 quit From unknown Sun Aug 17 22:00:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 14 Jun 2022 11:24:08 +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