From: Michael Moorman <tensorpuddin@devio.us>
To: 8840@debbugs.gnu.org
Subject: bug#8840: 24.0.50; python-mode derives from fundamental, not prog-mode
Date: Sat, 11 Jun 2011 21:20:55 -0400 [thread overview]
Message-ID: <1307841655.1818.10.camel@nova> (raw)
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
next reply other threads:[~2011-06-12 1:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-12 1:20 Michael Moorman [this message]
2011-06-15 16:18 ` bug#8840: 24.0.50; python-mode derives from fundamental, not prog-mode Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1307841655.1818.10.camel@nova \
--to=tensorpuddin@devio.us \
--cc=8840@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).