From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Chapel Newsgroups: gmane.emacs.bugs Subject: bug#8639: 23.2; emacs python mode should colorize nonlocal keyword Date: Sun, 08 May 2011 18:56:18 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1304898480 16946 80.91.229.12 (8 May 2011 23:48:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 May 2011 23:48:00 +0000 (UTC) To: 8639@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 09 01:47:54 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QJDhV-0006Gx-KV for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2011 01:47:49 +0200 Original-Received: from localhost ([::1]:60826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJDhU-0006Q1-Hu for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 May 2011 19:47:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJDgl-0006Ot-OU for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 19:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJDgk-0007Zu-R4 for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 19:47:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJDgk-0007Zo-IV for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 19:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QJDgj-0003g4-WC; Sun, 08 May 2011 19:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Steve Chapel Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 May 2011 23:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8639 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.130489837214074 (code B ref -1); Sun, 08 May 2011 23:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 May 2011 23:46:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJDfv-0003ew-Cb for submit@debbugs.gnu.org; Sun, 08 May 2011 19:46:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJDG6-00036A-Qv for submit@debbugs.gnu.org; Sun, 08 May 2011 19:19:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJDG0-0003pq-Jz for submit@debbugs.gnu.org; Sun, 08 May 2011 19:19:25 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:56221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJDG0-0003pl-IO for submit@debbugs.gnu.org; Sun, 08 May 2011 19:19:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJDFz-0004aT-C1 for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 19:19:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJDFy-0003pY-Fo for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 19:19:23 -0400 Original-Received: from stevechapel.com ([69.11.220.126]:48737 helo=laptop.stevechapel.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJDFy-0003pR-1E for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 19:19:22 -0400 Original-Received: from laptop.stevechapel.com (laptop.stevechapel.com [127.0.0.1]) by laptop.stevechapel.com (8.14.4/8.14.4) with ESMTP id p48MuJPv025106 for ; Sun, 8 May 2011 18:56:19 -0400 Original-Received: (from schapel@localhost) by laptop.stevechapel.com (8.14.4/8.14.4/Submit) id p48MuIMM025104; Sun, 8 May 2011 18:56:18 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 08 May 2011 19:46:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 08 May 2011 19:47:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sun, 08 May 2011 19:47:46 -0400 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:46342 Archived-At: When editing a Python source file, the nonlocal keyword is not colorized as are other keywords. The following program is an example: #!/usr/bin/python3 def foo(): i = 1 def bar(): nonlocal i return i + 1 return bar print(foo()()) In GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.21.4) of 2010-07-08 on x86-10.phx2.fedoraproject.org configured using `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=gene ric -fno-optimize-sibling-calls'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=none 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 auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 1 ; 2 6 0 1 ; 0 c ESC x r e p TAB DEL DEL DEL b u g TAB TAB DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL r e p o r t TAB RET Recent messages: ("emacs" "hop4_2.py") Loading /usr/share/emacs/site-lisp/site-start.d/focus-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] Load-path shadows: None found. Features: (shadow sort mail-extr message idna sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode view python-21 python easymenu comint ring tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)