From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Left Right Newsgroups: gmane.emacs.bugs Subject: bug#14328: buffer cloned with clone-indirect-buffer is refontified with the source, when switching mode Date: Sun, 5 May 2013 08:38:54 +0300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec53f346decf81604dbf1ff9c X-Trace: ger.gmane.org 1367732363 12948 80.91.229.3 (5 May 2013 05:39:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 May 2013 05:39:23 +0000 (UTC) Cc: 14328@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 05 07:39:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UYrfK-000290-NQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 May 2013 07:39:18 +0200 Original-Received: from localhost ([::1]:47795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYrfK-00035O-CH for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 May 2013 01:39:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYrfG-00035H-TK for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 01:39:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYrfF-0008IQ-I9 for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 01:39:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYrfF-0008IM-Bz for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 01:39:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UYrg2-0005Zc-G1 for bug-gnu-emacs@gnu.org; Sun, 05 May 2013 01:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Left Right Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 May 2013 05:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14328 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14328-submit@debbugs.gnu.org id=B14328.136773238621339 (code B ref 14328); Sun, 05 May 2013 05:40:02 +0000 Original-Received: (at 14328) by debbugs.gnu.org; 5 May 2013 05:39:46 +0000 Original-Received: from localhost ([127.0.0.1]:58396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYrfl-0005Y8-Mm for submit@debbugs.gnu.org; Sun, 05 May 2013 01:39:45 -0400 Original-Received: from mail-we0-f176.google.com ([74.125.82.176]:43243) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYrfk-0005Xt-Cy for 14328@debbugs.gnu.org; Sun, 05 May 2013 01:39:45 -0400 Original-Received: by mail-we0-f176.google.com with SMTP id r6so2170298wey.21 for <14328@debbugs.gnu.org>; Sat, 04 May 2013 22:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=VYlB62eyDH2R91UjrJJD3UYfsXMHt7SFGVZuAfwzyrI=; b=f66APsceJQOnone+Fna4oECsX5JdzNvG51X1VFFwCsU6JkMKX4pwUtvDisoEnrS9/Y cAQqu7Su4CsGZ5XU5+6yObn12RWrC0hloqMXyGeHp00iLzRNzCicW8EJYJLVNTz2Ot/J 8H0fmx+TC0Aj9H3dNtH8IqNnrY1ihPHkVWoxmNCQCQY8moR33uiOMLn3pPXCKowlRlS6 OO4dkuGjUfQ2ujfNn/USUsoJWB24MhzDtsRcrJz+M7tQtv20ku25g7gBBM8xR2jz2/KK AF4jz3N7nck1qHgVJpv4RTaXCl3T+TiHq8DdpOdVinpwp0ee1MjrzezBuS7juD2X7QQC D15Q== X-Received: by 10.180.20.108 with SMTP id m12mr3839916wie.8.1367732334151; Sat, 04 May 2013 22:38:54 -0700 (PDT) Original-Received: by 10.194.95.105 with HTTP; Sat, 4 May 2013 22:38:54 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73978 Archived-At: --bcaec53f346decf81604dbf1ff9c Content-Type: text/plain; charset=ISO-8859-1 Hi Stefan. I discovered it when trying to edit an MSBuild file (that's a MSVS project). It is normally an XML, but you can use some C# inside to write inline tasks, so I wanted to have a buffer that highlights C# code on one side and XML on the other side. On Sun, May 5, 2013 at 8:09 AM, Stefan Monnier wrote: > > When I clone buffer using clone-indirect-buffer (C-x 4 c), and then > change > > major mode, the newly created buffer will enter the requested major mode, > > but will cause the original buffer to be refontified in the same way the > > clone buffer is. Thereafter whenever I change major mode, the same thing > > happens. > > Yup. Indirect buffers suck. What do you use clone-indirect-buffer for? > > > Stefan > --bcaec53f346decf81604dbf1ff9c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Stefan.

I discovered it when trying to edit an M= SBuild file (that's a MSVS project). It is normally an XML, but you can= use some C# inside to write inline tasks, so I wanted to have a buffer tha= t highlights C# code on one side and XML on the other side.

On Sun, May 5, 2013 at 8:09 AM, Stefan Monni= er <monnier@iro.umontreal.ca> wrote:
> When I clone buffer using clone-indirect-buffer (C-x 4 c), and then ch= ange
> major mode, the newly created buffer will enter the requested major mo= de,
> but will cause the original buffer to be refontified in the same way t= he
> clone buffer is. Thereafter whenever I change major mode, the same thi= ng
> happens.

Yup. =A0Indirect buffers suck. =A0What do you use clone-indirect-buffer for= ?


=A0 =A0 =A0 =A0 Stefan

--bcaec53f346decf81604dbf1ff9c--