unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Left Right <olegsivokon@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 14328@debbugs.gnu.org
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	[thread overview]
Message-ID: <CAJQBtgkYzR5MLfkDJbr=_c6DLb418cvjwtNXdixbSJHL7GfFfw@mail.gmail.com> (raw)
In-Reply-To: <jwvvc6ynhdq.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 766 bytes --]

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 <monnier@iro.umontreal.ca>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
>

[-- Attachment #2: Type: text/html, Size: 1154 bytes --]

  reply	other threads:[~2013-05-05  5:38 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 [this message]
2013-05-09 18:49     ` Stefan Monnier
2013-05-09 20:04       ` Dmitry Gutov

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAJQBtgkYzR5MLfkDJbr=_c6DLb418cvjwtNXdixbSJHL7GfFfw@mail.gmail.com' \
    --to=olegsivokon@gmail.com \
    --cc=14328@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).