Package: mmm-mode
Version: 0.4.8-3
Severity: normal
I've been trying to use mmm-noweb with existing Noweb files.
Following the instructions in the manual gets me so far and no further.
In particular, even on the example in the info file, mmm is not switching from
tex-mode to c++-mode on the code chunks. (It does, interestingly, switch to
perl-mode correctly for the single perl chunk.)
The file is short enough that I include it in its entirety.
Running mmm-mode with class noweb should be sufficient to change to
c++-mode in the C++ portions of the file.
% -*- mode: latex; mmm-noweb-code-mode: c++; -*-
% First chunk delimiter!
@
\noweboptions{smallcode}
\title{Sample Noweb File}
\author{Joe Kelsey\\
\nwanchorto{mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
\maketitle
@
\section{Introduction}
Normal noweb documentation for the required [[*]] chunk.
<<*>>=
// C++ mode here!
// We might list the program here, or simply included chunks.
<<myfile.cc>>
@ %def myfile.cc
@
\section{[[myfile.cc]]}
This is [[myfile.cc]]. MMM noweb-mode understands code quotes in
documentation.
<<myfile.cc>>=
// This section is indented separately from previous.
@
@
\section{A Perl Chunk}
We need a Perl chunk.
<<myfile.pl>>=
#!/usr/bin/perl
# -*- perl -*-
# Each differently named chunk is flowed separately.
@
\section{Finish [[myfile.cc]]}
When we resume a previously defined chunk, they are indented together.
<<myfile.cc>>=
// Pick up where we left off...
@
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-k7-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages mmm-mode depends on:
ii emacs20 [emacsen] 20.7-13.3 The GNU Emacs editor.
ii emacs21 [emacsen] 21.4a-3 The GNU Emacs editor
mmm-mode recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]