From: John J Lee <jjl@pobox.com>
Cc: python-list@python.org, help-gnu-emacs@gnu.org
Subject: mmm-mode, python-mode and doctest-mode?
Date: Wed, 30 Nov 2005 17:43:27 +0000 (GMT Standard Time) [thread overview]
Message-ID: <Pine.WNT.4.64.0511301721550.700@shaolin> (raw)
Is it possible to get doctest-mode to work with mmm-mode and python-mode
nicely so that docstrings containing doctests are editable in
doctest-mode?
In my utter e-lisp ignorance, I tried this:
(require 'mmm-auto)
(setq mmm-global-mode 'maybe)
(mmm-add-classes
'(
(doctest
:submode doctest-mode
:front "\"\"\""
:back "\"\"\"")))
(mmm-add-mode-ext-class nil "\\.py$" 'doctest)
That has the following problems:
- Fails to set the background colour of the doctest-mode regions to the
default mmm-mode gray (as documented by mmm-mode - and observed for
another mmm class I have). Maybe an interaction with python-mode?
- Confuses python-mode: the face of docstrings sometimes fluctuates from
second to second between the string face and the face of ordinary text
(I assume the former face is python-mode's string face and the latter face
is the doctest-mode English-text face)!
Any tips appreciated!
John
--
http://mail.python.org/mailman/listinfo/python-list
reply other threads:[~2005-11-30 17:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.WNT.4.64.0511301721550.700@shaolin \
--to=jjl@pobox.com \
--cc=help-gnu-emacs@gnu.org \
--cc=python-list@python.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.
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).