From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wewwew Newsgroups: gmane.emacs.help Subject: How to disable multi-line string literal in c-mode and c++-mode? Date: Tue, 18 Aug 2009 08:21:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4a7f28df-9e34-4500-9038-199401f60d90@c1g2000yqi.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250610106 14326 80.91.229.12 (18 Aug 2009 15:41:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2009 15:41:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 18 17:41:39 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MdQoa-0005fo-SH for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2009 17:41:37 +0200 Original-Received: from localhost ([127.0.0.1]:40770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdQoa-0007f8-E6 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2009 11:41:36 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!c1g2000yqi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 17.201.24.19 Original-X-Trace: posting.google.com 1250608861 19697 127.0.0.1 (18 Aug 2009 15:21:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 18 Aug 2009 15:21:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c1g2000yqi.googlegroups.com; posting-host=17.201.24.19; posting-account=RZ5uTwkAAACKKd_1JWs8luP2Ks9v8SYd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172077 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67251 Archived-At: Hi, How can I disable multi-line string literals in c-mode and c++-mode, and treat the end of line as the end of string literal? I am programming using noweb, where LaTeX and C++ sources are mixed together. When editing the code part, the buffer uses c++-mode, but any single quote in the text is treated as start or end of string literal, so many of my code chunks are rendered as string literals. I would like to disable this multi-line string literals in c++-mode. Appreciate any help. -Wenguang