From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: indirect-region (make-indirect-buffer) breaks major-mode fontification Date: Tue, 17 Nov 2009 16:13:50 +0100 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=UTF-8 X-Trace: ger.gmane.org 1258471263 20001 80.91.229.12 (17 Nov 2009 15:21:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 15:21:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: senny Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 16:20:56 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-0007D7-5o for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 16:19:44 +0100 Original-Received: from localhost ([127.0.0.1]:35677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAPqI-0004TI-CQ for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 10:19:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAPl4-0002L5-Mg for help-gnu-emacs@gnu.org; Tue, 17 Nov 2009 10:14:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAPky-0002IV-NA for help-gnu-emacs@gnu.org; Tue, 17 Nov 2009 10:14:17 -0500 Original-Received: from [199.232.76.173] (port=42774 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAPky-0002IP-HJ for help-gnu-emacs@gnu.org; Tue, 17 Nov 2009 10:14:12 -0500 Original-Received: from mail-gx0-f224.google.com ([209.85.217.224]:65404) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAPky-0004h4-8W for help-gnu-emacs@gnu.org; Tue, 17 Nov 2009 10:14:12 -0500 Original-Received: by gxk24 with SMTP id 24so90554gxk.6 for ; Tue, 17 Nov 2009 07:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=MP5oqwBocSjrQOaRKhzxCvX9Z1H9jU4KiGGRcyoN3z4=; b=B9xSWtisbBIL8PePRaxPJazZGSLFbCQ2ATTlhrUBmyzxlZao0VQOJwWf1fq9ze8dxH QtVrZFLiHFUgk7g6IKKCXYLto1uXwg1UgCZHUH2Etg5P6TrpSc0zwlxJKxglNi9vgouX p7AkPPfHC652GN93eek2Z9MgMlDT3oIIsG3Ds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=MvEXSiBf3+Q7FTt1Msr4krAJ73okmcEMEqgLBw7Z2tIIRpp5ts8bpOrKoEaaO50TE7 Z13Co913aewQb2sh7vYrffv9DJHWmHMHicwAOJBqrvZuVwyLsZQSY2cOd+kYE/DRTxcF CaP66sgAcdEmIwdRLLoNSkALAL2lzEKcYwcA4= Original-Received: by 10.101.200.32 with SMTP id c32mr1265236anq.94.1258470850399; Tue, 17 Nov 2009 07:14:10 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:69829 Archived-At: On Tue, Nov 17, 2009 at 3:16 PM, senny wrote: > 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. Thanks senny. Can you tell more exactly what you think is clumsy? (nXhtml contains a lot of multi major modes and other things related to web programming.) > I did not report any errors because I > didn't looked into the details, why things are not working. But can you please tell what it was that did not work for you? > My > impression of nXhtml was, that it was slowing my cursor movement down > a lot I have made some optimisations since then (or rather removed some mistakes). If it feels slow you can also byte compile the whole nXhtml. (There is a menu entry in the nXhtml menu for that to make it easier.) But of course any multi major mode solution that is dynamic and checks for chunk boundaries while you are editing is doing a little bit more. However I do not think you will notice it very much normally. If you have an example where it feels slow I would be glad to know. (Please try the latest version then.) > and that it had some unexpected behaviours from time to time. You mean bugs, or? Unfortunately I have no idea what you mean unless you tell me more. > 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. Hm. What do you mean? This exactly what nXhtml gives you, isn't it? Do you mean that you are not looking for a flexible solution? If you are missing some special template language then please tell me. > Thats > why i was heading for the "indirect-buffer" approach. > Regards, > Senny >