From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.devel Subject: Re: python-mode patch Date: Wed, 23 Aug 2006 22:10:56 +0200 Message-ID: <20060823220538.49FC.SLAWOMIR.NOWACZYK.847@student.lu.se> References: <20060822215650.4987.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1156363928 13564 80.91.229.2 (23 Aug 2006 20:12:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2006 20:12:08 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 23 22:12:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFz54-0003Re-1X for ged-emacs-devel@m.gmane.org; Wed, 23 Aug 2006 22:12:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFz53-0002SY-DB for ged-emacs-devel@m.gmane.org; Wed, 23 Aug 2006 16:12:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFz4D-0001me-FU for emacs-devel@gnu.org; Wed, 23 Aug 2006 16:11:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFz4B-0001l3-8r for emacs-devel@gnu.org; Wed, 23 Aug 2006 16:11:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFz4B-0001kd-2u for emacs-devel@gnu.org; Wed, 23 Aug 2006 16:11:11 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GFzC4-0005Yg-MV for emacs-devel@gnu.org; Wed, 23 Aug 2006 16:19:21 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.13.6/8.13.6/perf-jw-tr) with ESMTP id k7NKB4c2015437 for ; Wed, 23 Aug 2006 22:11:05 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.25.02 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58782 Archived-At: On Tue, 22 Aug 2006 15:31:33 -0500 Peter Lee wrote: #> Can "self" be made a keyword? I hope so :) Here is a patch. ********************************************************************** --- m:/EmacsCVS/EmacsCVS/lisp/progmodes/python.el 2006-08-22 19:49:58.809940800 +0200 +++ c:/Emacs/lisp/progmodes/python.el 2006-08-23 22:07:21.844835200 +0200 @@ -94,7 +94,9 @@ "import" "in" "is" "lambda" "not" "or" "pass" "print" "raise" "return" "try" "while" "yield" ;; Future keywords - "as" "None") + "as" "None" + ;; Not real keywords, but close enough to be fontified as such + "self" "True" "False") symbol-end) ;; Definitions (,(rx symbol-start (group "class") (1+ space) (group (1+ (or word ?_)))) ********************************************************************** -- Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) In 10 minutes, a hurricane releases more energy than all of the world's nuclear weapons combined.