From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Moorman Newsgroups: gmane.emacs.bugs Subject: bug#8840: 24.0.50; python-mode derives from fundamental, not prog-mode Date: Sat, 11 Jun 2011 21:20:55 -0400 Message-ID: <1307841655.1818.10.camel@nova> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307844209 31168 80.91.229.12 (12 Jun 2011 02:03:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2011 02:03:29 +0000 (UTC) To: 8840@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 12 04:03:24 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 1QVa1M-00021o-4j for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jun 2011 04:03:24 +0200 Original-Received: from localhost ([::1]:45537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVa1K-0005Sc-TV for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Jun 2011 22:03:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVa12-0005SP-FE for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2011 22:03:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVa11-000384-DZ for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2011 22:03:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVa11-00037u-8r for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2011 22:03:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QVa10-00044Y-Tv; Sat, 11 Jun 2011 22:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Moorman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2011 02:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8840 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.130784415215605 (code B ref -1); Sun, 12 Jun 2011 02:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jun 2011 02:02:32 +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 1QVa0V-00043e-2m for submit@debbugs.gnu.org; Sat, 11 Jun 2011 22:02:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QVZMS-00037u-JN for submit@debbugs.gnu.org; Sat, 11 Jun 2011 21:21:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVZMM-0007NA-F6 for submit@debbugs.gnu.org; Sat, 11 Jun 2011 21:21:03 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:49712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVZML-0007N5-SR for submit@debbugs.gnu.org; Sat, 11 Jun 2011 21:21:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVZMK-0003rm-LY for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2011 21:21:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVZMI-0007Mn-S4 for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2011 21:21:00 -0400 Original-Received: from devio.us ([66.7.199.108]:13244 helo=wolfman.devio.us) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVZMI-0007Me-Gf for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2011 21:20:58 -0400 Original-Received: from [192.168.1.107] (unknown [99.70.203.86]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by wolfman.devio.us (Postfix) with ESMTPSA id 2E83D1A90C6 for ; Sat, 11 Jun 2011 21:20:56 -0400 (EDT) X-Mailer: Evolution 2.32.2 X-detected-operating-system: by eggs.gnu.org: OpenBSD 3.0-3.9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 11 Jun 2011 22:02:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 11 Jun 2011 22:03: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:47091 Archived-At: python-mode in python.el derives from fundamental-mode and not prog-mode, unlike most other coding modes (e.g. perl-mode), and run prog-mode-hook as other modes do, which is inconsistent. Here's a patch (simple enough!): === modified file 'lisp/progmodes/python.el' *** lisp/progmodes/python.el 2011-05-24 03:38:35 +0000 --- lisp/progmodes/python.el 2011-06-12 00:24:49 +0000 *************** without confirmation." *** 2420,2426 **** (defvar python-mode-running) ;Dynamically scoped var. ;;;###autoload ! (define-derived-mode python-mode fundamental-mode "Python" "Major mode for editing Python files. Turns on Font Lock mode unconditionally since it is currently required for correct parsing of the source. --- 2420,2426 ---- (defvar python-mode-running) ;Dynamically scoped var. ;;;###autoload ! (define-derived-mode python-mode prog-mode "Python" "Major mode for editing Python files. Turns on Font Lock mode unconditionally since it is currently required for correct parsing of the source. Michael Moorman https://launchpad.net/~tensorpuddin