GNU bug report logs - #8840
24.0.50; python-mode derives from fundamental, not prog-mode

Previous Next

Package: emacs;

Reported by: Michael Moorman <tensorpuddin <at> devio.us>

Date: Sun, 12 Jun 2011 02:03:02 UTC

Severity: minor

Found in version 24.0.50

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8840 in the body.
You can then email your comments to 8840 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8840; Package emacs. (Sun, 12 Jun 2011 02:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Moorman <tensorpuddin <at> devio.us>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 12 Jun 2011 02:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Moorman <tensorpuddin <at> devio.us>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; python-mode derives from fundamental, not prog-mode
Date: Sat, 11 Jun 2011 21:20:55 -0400
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





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 15 Jun 2011 16:19:02 GMT) Full text and rfc822 format available.

Notification sent to Michael Moorman <tensorpuddin <at> devio.us>:
bug acknowledged by developer. (Wed, 15 Jun 2011 16:19:02 GMT) Full text and rfc822 format available.

Message #10 received at 8840-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 8840-done <at> debbugs.gnu.org
Subject: Re: bug#8840: 24.0.50;
	python-mode derives from fundamental, not prog-mode
Date: Wed, 15 Jun 2011 12:18:11 -0400
Version: 24.1

It derives from prog-mode now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 Jul 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 345 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.