GNU bug report logs - #14328
buffer cloned with clone-indirect-buffer is refontified with the source, when switching mode

Previous Next

Package: emacs;

Reported by: Left Right <olegsivokon <at> gmail.com>

Date: Wed, 1 May 2013 18:07:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: Left Right <olegsivokon <at> gmail.com>, 14328 <at> debbugs.gnu.org
Subject: bug#14328: buffer cloned with clone-indirect-buffer is refontified with the source, when switching mode
Date: Fri, 10 May 2013 00:04:52 +0400
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

>> 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.
>
> Right, good'ol' multi-major-mode problem.
> Using indirect-buffers with it just adds a new problem onto the other.
>
> I don't think we have a good answer yet :-(

mmm-mode (https://github.com/purcell/mmm-mode) should work well enough
for this purpose, all indirect-buffer munging is hidden from the user.




This bug report was last modified 1 year and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.