From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ph. Ivaldi Newsgroups: gmane.emacs.help Subject: Highlight non-closed quote Date: Sat, 07 Jul 2007 02:43:20 +0200 Organization: A GNU/Linux user. Message-ID: <87myy982mv.fsf@tele2.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1183800195 5659 80.91.229.12 (7 Jul 2007 09:23:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Jul 2007 09:23:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 07 11:23:13 2007 connect(): Connection refused 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 1I76VU-0005xh-AO for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jul 2007 11:23:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I76VT-0006vj-C7 for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jul 2007 05:23:11 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!news.imp.ch!news.imp.ch!news.alphanet.ch!alphanet.ch!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: d90-144-86-244.cust.tele2.fr Original-X-Trace: shakotay.alphanet.ch 1183769000 24785 90.144.86.244 (7 Jul 2007 00:43:20 GMT) Original-X-Complaints-To: usenet@alphanet.ch Original-NNTP-Posting-Date: Sat, 7 Jul 2007 00:43:20 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Face: UCs{cY@n, .D_C)[lP*B#'>5ec\gQ"`B7cEmC(d=XNH}_:50I6}>sQ_+GC&PiNZ+<.[}Z]ib, DzQ}WN0r=WE>RvoiPZBF6(*pA|+=&9x5mT_P, kzLdYf5:a[h3W#8?LZS|X'[~n%O, D_fWZM1oW, 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:45525 Archived-At: Hello, I created a mode (asy-mode), derived from objc-mode and I use two-mode-mode to switch between latex-mode and asy-mode in a file .tex. By editing this code 8<------8<------8<------8<------8<------8<------8<------8<------8<------ \documentclass{article} \begin{document} I'm a quote. \begin{asy} draw(scale(5cm)*unitcircle); \end{asy} \end{document} 8<------8<------8<------8<------8<------8<------8<------8<------8<------ with the cursor between '\begin{asy}' and '\end{asy}' the buffer rocks to asy-mode, and so, all the text after the quote is highlighted as a string would. It is strange to highlight a string which does not exist and here it is particularly awkward. how to say to 'font-lock' to color only the strings between double quote ? -- Thanks for your help, Philippe Ivaldi. http://piprim.tuxfamily.org/ PS: french discuss about this problem in fr.comp.applications.emacs without convincing solution. http://tinyurl.com/2crelu