From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Roda Newsgroups: gmane.emacs.bugs Subject: bug#15161: 24.3; python mode highlight annoyance Date: Thu, 22 Aug 2013 13:12:09 +0200 Message-ID: <5215F209.7060205@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1377186377 17393 80.91.229.3 (22 Aug 2013 15:46:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2013 15:46:17 +0000 (UTC) To: 15161@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 22 17:46:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VCX5T-0001kI-Kr for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Aug 2013 17:46:15 +0200 Original-Received: from localhost ([::1]:60495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCX5T-0002bs-Av for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Aug 2013 11:46:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCX5L-0002ZB-O3 for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2013 11:46:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCX5G-00029v-MI for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2013 11:46:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCX5G-00029q-Iu for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2013 11:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VCX5F-0002IU-My for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2013 11:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexis Roda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Aug 2013 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13771863408789 (code B ref -1); Thu, 22 Aug 2013 15:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Aug 2013 15:45:40 +0000 Original-Received: from localhost ([127.0.0.1]:47920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCX4t-0002Hh-Lq for submit@debbugs.gnu.org; Thu, 22 Aug 2013 11:45:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52221) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCSoo-00030M-KS for submit@debbugs.gnu.org; Thu, 22 Aug 2013 07:12:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCSoi-0004Hs-Si for submit@debbugs.gnu.org; Thu, 22 Aug 2013 07:12:46 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCSoi-0004Ho-QZ for submit@debbugs.gnu.org; Thu, 22 Aug 2013 07:12:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCSoc-00017s-Lg for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2013 07:12:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCSoX-0004FH-MR for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2013 07:12:34 -0400 Original-Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:37649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCSoX-0004F4-Gr for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2013 07:12:29 -0400 Original-Received: by mail-wg0-f41.google.com with SMTP id c11so526137wgh.4 for ; Thu, 22 Aug 2013 04:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=x2D9rkqnnYDxsUjWJPPx05E+oDKO1p7lLPC12389iTQ=; b=LV48vWl+yhsKvWqoVRu86TWA0lq0NYjp4vwbKh6cELm914bS5AKnhZeciJoo2J16mG c+QXQzFWDLTU4LZWFjvdOLlDKSRKgxJGMhcCCqvwS0+//2U5i8gCS37Fqo7JfgTnF9Q+ xv/Qzz81YnRhFM4MIA3SbXCfJsNFIUQtI4+fPbMf5SP4kpK+8DpUNBlYeM2CWSI+wJXl 4C841ZSUQhOYf4cbAkYZ2bVIRJorJ8xd97AC5z8iioG3VcBSzl7XapejiMSORi+F7E81 Xz2PRfeS15Gb95Ahi3AdahW2tLuMpfeGoU+uPp9NRYRFWD5WrxjiXYvuJpaVT5SZxTmi 4Kvg== X-Received: by 10.194.48.74 with SMTP id j10mr6436217wjn.41.1377169931763; Thu, 22 Aug 2013 04:12:11 -0700 (PDT) Original-Received: from [192.168.1.10] (208.Red-88-1-87.dynamicIP.rima-tde.net. [88.1.87.208]) by mx.google.com with ESMTPSA id li9sm15930314wic.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 04:12:11 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 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-Mailman-Approved-At: Thu, 22 Aug 2013 11:45:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77612 Archived-At: The symptom is that in the code: # no s'ha trobat cap oferta, l'alumne queda sense assignar # (alumne.assignacio == None) self._logger.info( u"no assigna '%s'", alumne.id ) alumne.assignacio = None 'alumne.assignacio' isn't properly colorized after visiting the file. In order to reproduce this behaviour: emacs -Q /tmp/bugtest.py type: # a == variable = "value" save, close and open the file again, the variable identifier isn't properly highlighted. Deleting the 'a' or a '=' in the comment produces the right colorization, but adding them back makes it wrong again. In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2013-08-17 on superjul Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.04.2 LTS Configured using: `configure '--prefix=/opt/emacs/24.3'' Important settings: value of $LANG: ca_ES.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Python Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-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 line-number-mode: t transient-mark-mode: t Recent input: # SPC a = = s o v e _ m e _ v a r SPC = SPC 4 SPC o t h e r SPC v a r _ v a r SPC = SPC 4 SPC = # SPC f o o SPC C-a C-k C-k M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode python rx easymenu comint ring ansi-color time-date tooltip 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 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 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)