* Resetting C++-mode locally
@ 2003-02-14 6:39 Torsten Bronger
2003-02-14 9:33 ` Kai Großjohann
2003-02-14 18:35 ` David Masterson
0 siblings, 2 replies; 3+ messages in thread
From: Torsten Bronger @ 2003-02-14 6:39 UTC (permalink / raw)
Halloechen!
I write my programs in CWEB which contains C++ and TeX code alternately.
This confuses the c++-mode very much. I try to avoid that by inserting
e.g. extra apostrophes , parentheses, and semicolons in a construct that
is ignored by TeX and C++. But it doesn't work always.
How can I reset the status of the c++-mode locally before each C++
fragment?
Tschoe,
Torsten.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Resetting C++-mode locally
2003-02-14 6:39 Resetting C++-mode locally Torsten Bronger
@ 2003-02-14 9:33 ` Kai Großjohann
2003-02-14 18:35 ` David Masterson
1 sibling, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2003-02-14 9:33 UTC (permalink / raw)
Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
> I write my programs in CWEB which contains C++ and TeX code alternately.
> This confuses the c++-mode very much.
There is mmm-mode or two-mode which allows you to have two modes in
one buffer. Maybe that helps?
--
A turnip curses Elvis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Resetting C++-mode locally
2003-02-14 6:39 Resetting C++-mode locally Torsten Bronger
2003-02-14 9:33 ` Kai Großjohann
@ 2003-02-14 18:35 ` David Masterson
1 sibling, 0 replies; 3+ messages in thread
From: David Masterson @ 2003-02-14 18:35 UTC (permalink / raw)
>>>>> Torsten Bronger writes:
> I write my programs in CWEB which contains C++ and TeX code
> alternately. This confuses the c++-mode very much. I try to avoid
> that by inserting e.g. extra apostrophes , parentheses, and
> semicolons in a construct that is ignored by TeX and C++. But it
> doesn't work always.
> How can I reset the status of the c++-mode locally before each C++
> fragment?
You'll probably need something like mmm-mode.el to allow you to handle
two different major modes in one file. You would probably have
similar problems if you were editing a flex or bison file with
c++-mode.
--
David Masterson David DOT Masterson AT synopsys DOT com
Sr. R&D Engineer Synopsys, Inc.
Software Engineering Sunnyvale, CA
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-14 18:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-14 6:39 Resetting C++-mode locally Torsten Bronger
2003-02-14 9:33 ` Kai Großjohann
2003-02-14 18:35 ` David Masterson
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).