From: senny <yves.senn@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: indirect-region (make-indirect-buffer) breaks major-mode fontification
Date: Tue, 17 Nov 2009 04:43:39 -0800 (PST) [thread overview]
Message-ID: <61136d02-7d49-4b29-82e4-3d970cb55175@m38g2000yqd.googlegroups.com> (raw)
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?
Regards,
Senny
next reply other threads:[~2009-11-17 12:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-17 12:43 senny [this message]
2009-11-17 14:01 ` indirect-region (make-indirect-buffer) breaks major-mode fontification Lennart Borgman
[not found] ` <mailman.10887.1258466524.2239.help-gnu-emacs@gnu.org>
2009-11-17 14:16 ` senny
2009-11-17 14:20 ` Joost Kremers
2009-11-17 14:40 ` senny
2009-11-17 15:13 ` Lennart Borgman
[not found] ` <ADEECBBC-DEC5-45E1-9A56-C8877DA04F7C@gmail.com>
[not found] ` <e01d8a50911171135g288b67dfk8bcc6d15812a994c@mail.gmail.com>
[not found] ` <453D5202-26FA-4AE5-9AC6-1F4973C42A9B@gmail.com>
2009-11-17 20:28 ` Lennart Borgman
[not found] ` <mailman.10926.1258489768.2239.help-gnu-emacs@gnu.org>
2009-11-18 7:54 ` senny
2009-11-18 13:30 ` Lennart Borgman
[not found] ` <mailman.10965.1258551083.2239.help-gnu-emacs@gnu.org>
2009-11-18 13:52 ` senny
2009-11-18 15:44 ` Lennart Borgman
2009-11-18 16:38 ` Lennart Borgman
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=61136d02-7d49-4b29-82e4-3d970cb55175@m38g2000yqd.googlegroups.com \
--to=yves.senn@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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).