From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John J Lee Newsgroups: gmane.comp.python.general,gmane.emacs.help Subject: mmm-mode, python-mode and doctest-mode? Date: Wed, 30 Nov 2005 17:43:27 +0000 (GMT Standard Time) Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133375832 20587 80.91.229.2 (30 Nov 2005 18:37:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2005 18:37:12 +0000 (UTC) Cc: python-list@python.org, help-gnu-emacs@gnu.org Original-X-From: python-list-bounces+python-python-list=m.gmane.org@python.org Wed Nov 30 19:37:02 2005 Return-path: Original-Received: from smtp-vbr14.xs4all.nl ([194.109.24.34]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhVzy-0004DA-6b for python-python-list@gmane.org; Wed, 30 Nov 2005 18:44:06 +0100 Original-Received: from bag.python.org (bag.python.org [194.109.207.14]) by smtp-vbr14.xs4all.nl (8.13.3/8.13.3) with ESMTP id jAUHi6aX049956 for ; Wed, 30 Nov 2005 18:44:06 +0100 (CET) (envelope-from python-list-bounces+python-python-list=m.gmane.org@python.org) Original-Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id E82921E4014 for ; Wed, 30 Nov 2005 18:44:05 +0100 (CET) Original-Received: from bag.python.org (bag [127.0.0.1]) by bag.python.org (Postfix) with ESMTP id 8AEBA1E400E for ; Wed, 30 Nov 2005 18:43:35 +0100 (CET) X-Spam-Status: OK 0.026 Original-Received: from bag (HELO bag.python.org) (127.0.0.1) by bag.python.org with SMTP; 30 Nov 2005 18:43:35 +0100 Original-Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by bag.python.org (Postfix) with SMTP for ; Wed, 30 Nov 2005 18:43:35 +0100 (CET) Original-Received: (qmail 96559 invoked from network); 30 Nov 2005 17:43:28 -0000 Original-Received: from unknown (HELO shaolin) (unknown) by unknown with SMTP; 30 Nov 2005 17:43:28 -0000 X-pair-Authenticated: 217.196.247.135 Original-To: edloper@alum.mit.edu X-X-Sender: jjlee@fastmail.fm@mail.messagingengine.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.6 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: python-list-bounces+python-python-list=m.gmane.org@python.org Errors-To: python-list-bounces+python-python-list=m.gmane.org@python.org X-Virus-Scanned: by XS4ALL Virus Scanner Xref: news.gmane.org gmane.comp.python.general:434761 gmane.emacs.help:31533 Archived-At: 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