From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: senny Newsgroups: gmane.emacs.help Subject: Re: indirect-region (make-indirect-buffer) breaks major-mode fontification Date: Tue, 17 Nov 2009 06:16:34 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <61136d02-7d49-4b29-82e4-3d970cb55175@m38g2000yqd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1258469730 14433 80.91.229.12 (17 Nov 2009 14:55:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 14:55:30 +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 Nov 17 15:55:24 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 1NAPQj-0005ZT-2L for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 15:53:17 +0100 Original-Received: from localhost ([127.0.0.1]:44908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAPQi-00066Y-Jh for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 09:53:16 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!e23g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 194.41.152.158 Original-X-Trace: posting.google.com 1258467395 8457 127.0.0.1 (17 Nov 2009 14:16:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 17 Nov 2009 14:16:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e23g2000yqd.googlegroups.com; posting-host=194.41.152.158; posting-account=HpnstAoAAADdixpnvjy3qaoKJJO_Jdvb User-Agent: G2/1.0 X-HTTP-Via: ICAP/1.0 172.17.18.14 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174751 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:69824 Archived-At: On 17 Nov., 15:01, Lennart Borgman wrote: > On Tue, Nov 17, 2009 at 1:43 PM, senny wrote: > > Hey there > > > I am looking for a way to edit java-script and css snippets in a HTML > > document with their corresponding major modes. I've tried some of the > > multi major mode solutions but found most of them buggy and performing > > slowly. Recently I found the indirect-buffer feature of emacs. This is > > exactly what I am looking for but it somehow breaks fontification. > > When I clone a region into an indirect buffer the code does not get > > highlighted correctly. > > > This seems only to happen when the original buffer is visible in an > > other window. when I only edit the indirect buffer, then fontification > > works as expected. > > > Is there a workaround for this problem? > > Perhaps try latest version of nXhtml? Which version have you tried and > what problems did you find. Did you report any bugs in nXhtml? I tried nXhtml when I used emacsW32, which was about two or three months ago (cant remember the exact version number of nXhtml). The mode felt kinda clumsy for me. I did not report any errors because I didn't looked into the details, why things are not working. My impression of nXhtml was, that it was slowing my cursor movement down a lot and that it had some unexpected behaviours from time to time. The other thing is, that I am looking for a flexible solution, I am editing a lot of different template languages (jsp, esp, rhtml) and it would be cool to use the same solution for all these cases. Thats why i was heading for the "indirect-buffer" approach. Regards, Senny