From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#8639: 23.2; emacs python mode should colorize nonlocal keyword Date: Thu, 12 May 2011 00:13:17 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1305152113 19685 80.91.229.12 (11 May 2011 22:15:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 May 2011 22:15:13 +0000 (UTC) Cc: 8639@debbugs.gnu.org To: Steve Chapel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 12 00:15:09 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 1QKHgT-00068G-1r for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 May 2011 00:15:09 +0200 Original-Received: from localhost ([::1]:37629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKHgS-0006Le-5c for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 May 2011 18:15:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKHgO-0006K6-7F for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 18:15:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKHgN-00055b-38 for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 18:15:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKHgN-00055U-0J for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 18:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QKHgM-00051c-As; Wed, 11 May 2011 18:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2011 22:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8639 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8639-submit@debbugs.gnu.org id=B8639.130515204519237 (code B ref 8639); Wed, 11 May 2011 22:15:02 +0000 Original-Received: (at 8639) by debbugs.gnu.org; 11 May 2011 22:14:05 +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 1QKHfQ-00050D-OL for submit@debbugs.gnu.org; Wed, 11 May 2011 18:14:05 -0400 Original-Received: from mail-gx0-f172.google.com ([209.85.161.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKHfO-0004ze-MD for 8639@debbugs.gnu.org; Wed, 11 May 2011 18:14:03 -0400 Original-Received: by gxk19 with SMTP id 19so343929gxk.3 for <8639@debbugs.gnu.org>; Wed, 11 May 2011 15:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=/RncSmqfStsLeIOTeeCIiuSqMdUB+nWCOajFav4hOi0=; b=wRWUdci849XYhqGtvswjZR8KjF7mHJTvAWgwPu5TBqdBD5Rd49LhKe2RAtnGo49IFq pI8y2zMkLJFhZRO7rdeU/vOsEgVnBlkwg/H9wPV/4h/pX8dABLQ5K3PjrOGEbgsLZZoI Rj/2idPSm4zmNmZnrZmWYhhUEJ9w1nUimBcG8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=kWjJcF3ZWdzHaF4Y86EMulmBWvHeNgUANjGSz75KSzfMET+6vt+oBM1VKEny0k/M1Y Xp29Ms5t2T5KjITH9c6xdr+xpJ+rnIjBx4NFseSVnBwz0Er6tKOo1SEaJ35jqRLAIJqP 9yE2idHJlAYRWI5mUXf6dGuO7i5X9zSxwRkqA= Original-Received: by 10.236.78.34 with SMTP id f22mr10786447yhe.428.1305152037082; Wed, 11 May 2011 15:13:57 -0700 (PDT) Original-Received: by 10.147.41.4 with HTTP; Wed, 11 May 2011 15:13:17 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 11 May 2011 18:15:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:46400 Archived-At: On Mon, May 9, 2011 at 00:56, Steve Chapel wrote: > When editing a Python source file, the nonlocal keyword is not colorized > as are other keywords. It's easy to fix (see below), but "nonlocal" is a Python 3.X keyword, and python-mode does not really support Python 3 at this point, so I suppose that's not the only inconvenience you find when editing Python 3 code. =C2=A0 =C2=A0 Juanma =3D=3D=3D modified file 'lisp/progmodes/python.el' --- lisp/progmodes/python.el 2011-04-22 18:44:26 +0000 +++ lisp/progmodes/python.el 2011-05-11 22:08:51 +0000 @@ -100,5 +100,7 @@ "raise" "return" "try" "while" "with" "yield" ;; Not real keywords, but close enough to be fontified as suc= h - "self" "True" "False") + "self" "True" "False" + ;; Python 3 + "nonlocal") symbol-end) (,(rx symbol-start "None" symbol-end) ; see =C2=A7 Keywords in 2.7 man= ual