From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.help Subject: Re: Resetting C++-mode locally Date: 14 Feb 2003 10:35:56 -0800 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045248101 27610 80.91.224.249 (14 Feb 2003 18:41:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2003 18:41:41 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18jkmJ-0007B3-00 for ; Fri, 14 Feb 2003 19:41:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jklh-0001hd-0E for gnu-help-gnu-emacs@m.gmane.org; Fri, 14 Feb 2003 13:41:01 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 20 Original-Xref: shelby.stanford.edu gnu.emacs.help:110208 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6711 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6711 >>>>> 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