From: Richard Riley <rileyrg@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs and nxml/nxhtml-mode: memory overflow
Date: Mon, 27 Aug 2012 10:37:25 +0100 [thread overview]
Message-ID: <8td32c8ylm.fsf@news.eternal-september.org> (raw)
In-Reply-To: 87ehmtzcls.fsf@gmail.com
Jambunathan K <kjambunathan@gmail.com> writes:
> Martin Butz <mb@mkblog.org> writes:
>
>> Am 26.08.2012 18:01, schrieb Jambunathan K:
>>> >> since a few weeks I have some serious problem, while using emacs for
>>>>> webdevelopement. I use (and would like to in future) nxhtml-mode. It
>>>> seems that
>>>>> this mode (or the underlying nxml-mode) causes emacs to consume 100
>>>>> %
>>>> cpu-power
>>>>> - at least after a while. I can not spotify the exact reason for
>>>> this; in some
>>>>> cases it seem to be caused be validation. Emacs says MEM FULL! (mode
>>>> line),
>>>>> freezes and there's no other way as to kill the process.
>>>>> ...
>>>
>>> Have you tried disabling validation.
>>
>> I tried to do that over the menu, but did not find the responsible
>> variable to disable it completely.
>
> M-x apropos-variable RET validate RET
>
> ,----
> | Type RET on an entry to view its full documentation.
> |
> | rng-nxml-auto-validate-flag
> | Non-nil means automatically turn on validation with nxml-mode.
> | rng-validate-chunk-size
> | Number of characters in a RELAX NG validation chunk.
> | rng-validate-delay
> | Time in seconds that Emacs must be idle before starting a full
> | validation.
> | rng-validate-quick-delay
> | Time in seconds that Emacs must be idle before starting a quick
> | validation.
> `----
>
>>> If your XML file has no newlines then Emacs will choke.
>>
>> This is to say: at the EOF?
>
> I mean long lines - something like this
>
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
>
> instead of like this
>
> aaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaa
>
>>> IIRC, validation happens under the control of timer. Try increasing it.
>>
>> Do you know, how to do this? I assume, it is a variable of nxml-mode, right?
>
> See above options.
>
> ps: I haven't used nxhtml-mode
I've tried most methods for mixed mode.
nxhtml is really the only mode for mixed mode programming that even
begins to be useful. I tend to find most other recommendations are done
by people who are not using mixed mode at all. Regradless how the
purists see mixed mode files (try mentioning PHP even in #emacs) , they
are very common. php and html/css/javascript in one file is not
unusual. Emacs addressing this "natively" would be a real boon.
Unfortunately nxhrml doesnt seem to be maintained anymore, or?
Certainly in trunk emacs 24 using nxthml produces loads of popup error
buffers. I emailed the author but got no response.
next prev parent reply other threads:[~2012-08-27 9:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-26 14:35 Emacs and nxml/nxhtml-mode: memory overflow Dmitry Gutov
2012-08-26 16:01 ` Jambunathan K
2012-08-26 19:07 ` Martin Butz
2012-08-26 19:18 ` Jambunathan K
2012-08-27 9:37 ` Richard Riley [this message]
2012-08-27 18:44 ` Martin Butz
2012-08-27 20:11 ` Martin Butz
2012-08-26 19:02 ` Martin Butz
-- strict thread matches above, loose matches on Subject: below --
2012-08-27 18:55 Dmitry Gutov
2012-08-26 20:19 Dmitry Gutov
2012-08-27 9:38 ` Richard Riley
2012-08-23 12:56 Martin Butz
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=8td32c8ylm.fsf@news.eternal-september.org \
--to=rileyrg@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.
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.