all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Left Right <olegsivokon@gmail.com>, 14328@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	[thread overview]
Message-ID: <87k3n7or6j.fsf@yandex.ru> (raw)
In-Reply-To: <jwv1u9g6lft.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 09 May 2013 14:49:29 -0400")

Stefan Monnier <monnier@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.





      reply	other threads:[~2013-05-09 20:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-01 18:05 bug#14328: buffer cloned with clone-indirect-buffer is refontified with the source, when switching mode Left Right
2013-05-05  5:09 ` Stefan Monnier
2013-05-05  5:38   ` Left Right
2013-05-09 18:49     ` Stefan Monnier
2013-05-09 20:04       ` Dmitry Gutov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3n7or6j.fsf@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=14328@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=olegsivokon@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.