From xemacs-m  Mon Feb 24 13:28:28 1997
Received: from CNRI.Reston.VA.US (CNRI.Reston.VA.US [132.151.1.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id NAA14966
	for <xemacs-beta@xemacs.org>; Mon, 24 Feb 1997 13:28:26 -0600 (CST)
Received: from newcnri.cnri.reston.va.us by CNRI.Reston.VA.US id aa14855;
          24 Feb 97 11:46 EST
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id LAA16598; Mon, 24 Feb 1997 11:46:43 -0500
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id LAA16281; Mon, 24 Feb 1997 11:46:41 -0500
Date: Mon, 24 Feb 1997 11:46:41 -0500
Message-Id: <199702241646.LAA16281@anthem.CNRI.Reston.Va.US>
From: "Barry A. Warsaw" <bwarsaw@anthem.cnri.reston.va.us>
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="cyiwfdODFBwUL45E0YWs6psXbFPvCq9QrDTCMAXU"
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Subject: python-mode.el
Reply-To: bwarsaw@python.org
X-Attribution: BAW
X-Oblique-Strategy: Remove the ambiguities and convert to specifics
X-Url: http://www.python.org/~bwarsaw


--cyiwfdODFBwUL45E0YWs6psXbFPvCq9QrDTCMAXU
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Here's a small change to python-mode.el so that it sets up its
font-lock-keywords correctly.

-Barry


--cyiwfdODFBwUL45E0YWs6psXbFPvCq9QrDTCMAXU
Content-Type: text/plain
Content-Disposition: inline;
	filename="patch-8"
Content-Transfer-Encoding: 7bit

*** python-mode.el	1997/01/30 20:16:18	2.89
--- python-mode.el	1997/02/24 03:37:37
***************
*** 7,12 ****
  ;; Maintainer:    python-mode@python.org
  ;; Created:       Feb 1992
! ;; Version:       2.89
! ;; Last Modified: 1997/01/30 20:16:18
  ;; Keywords: python languages oop
  
--- 7,12 ----
  ;; Maintainer:    python-mode@python.org
  ;; Created:       Feb 1992
! ;; Version:       2.90
! ;; Last Modified: 1997/02/24 03:37:22
  ;; Keywords: python languages oop
  
***************
*** 209,213 ****
  the Emacs bell is also rung as a warning.")
  
! (defconst python-font-lock-keywords
    (let* ((keywords '("and"        "break"      "class"
  		     "continue"   "def"        "del"        "elif"
--- 209,213 ----
  the Emacs bell is also rung as a warning.")
  
! (defvar python-font-lock-keywords
    (let* ((keywords '("and"        "break"      "class"
  		     "continue"   "def"        "del"        "elif"
***************
*** 235,238 ****
--- 235,240 ----
       ))
    "Additional expressions to highlight in Python mode.")
+ (put 'python-mode 'font-lock-defaults '(python-font-lock-keywords))
+ 
  
  (defvar imenu-example--python-show-method-args-p nil 
***************
*** 717,721 ****
  	mode-name              "Python"
  	local-abbrev-table     python-mode-abbrev-table
- 	font-lock-defaults     '(python-font-lock-keywords)
  	paragraph-separate     "^[ \t]*$"
  	paragraph-start        "^[ \t]*$"
--- 719,722 ----
***************
*** 2412,2416 ****
  
  
! (defconst py-version "2.89"
    "`python-mode' version number.")
  (defconst py-help-address "python-mode@python.org"
--- 2413,2417 ----
  
  
! (defconst py-version "2.90"
    "`python-mode' version number.")
  (defconst py-help-address "python-mode@python.org"

--cyiwfdODFBwUL45E0YWs6psXbFPvCq9QrDTCMAXU--

