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 15:01:27 +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 1258467537 6178 80.91.229.12 (17 Nov 2009 14:18:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 14:18:57 +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 15:18:50 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 1NAOtM-0001U5-3n for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 15:18:48 +0100 Original-Received: from localhost ([127.0.0.1]:46587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAOtL-0005eO-GW for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 09:18:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAOd8-000564-7S for help-gnu-emacs@gnu.org; Tue, 17 Nov 2009 09:02:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAOcz-0004y3-0r for help-gnu-emacs@gnu.org; Tue, 17 Nov 2009 09:01:57 -0500 Original-Received: from [199.232.76.173] (port=36218 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAOcw-0004xh-M5 for help-gnu-emacs@gnu.org; Tue, 17 Nov 2009 09:01:51 -0500 Original-Received: from mail-yw0-f194.google.com ([209.85.211.194]:34244) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAOcu-0000Z2-Bd for help-gnu-emacs@gnu.org; Tue, 17 Nov 2009 09:01:49 -0500 Original-Received: by ywh32 with SMTP id 32so1558ywh.14 for ; Tue, 17 Nov 2009 06:01:47 -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=ZSlOZCowzVS7daqno6j1wNqolgtMxA+uBJUUy51nxjM=; b=NA/MhwNIGGgD2GTYHXUjYim9lZg5Hk4ifYAVg7kYsMWav3USEPBkPEVSqsj3VROD27 dY0uQRMNhsABdoAha2p0IK6brwDvi+IsfIUDESOd7rK7beY+JZvA5EPw5uOASB2vJwtO qyCErdQaLy/rYAgp6C8fbZCnQJnOcewnhqbdc= 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=DpAHzTltfWhfvJtPEpmFAoKxMVy/N6VNMEP5i6iqfpouppX2Fcrkz/Mwb+Y5s5DIFJ KVdeUaC+y1KCDbhS4+EbxaKIRnjiepnJr4jG/Kj4h2owPB/oktcJKih6xx4YRohDkeyF fS+LPaJ7G93zpBJMVEyx78XlTNU35kY0owQjk= Original-Received: by 10.101.175.21 with SMTP id c21mr3180407anp.120.1258466507569; Tue, 17 Nov 2009 06:01:47 -0800 (PST) In-Reply-To: <61136d02-7d49-4b29-82e4-3d970cb55175@m38g2000yqd.googlegroups.com> 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:69821 Archived-At: 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?