[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs and nxml/nxhtml-mode: memory overflow
From: |
Jambunathan K |
Subject: |
Re: Emacs and nxml/nxhtml-mode: memory overflow |
Date: |
Mon, 27 Aug 2012 00:48:07 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
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
> Thanks
> Martin
--
Re: Emacs and nxml/nxhtml-mode: memory overflow, Martin Butz, 2012/08/26
Re: Emacs and nxml/nxhtml-mode: memory overflow, Dmitry Gutov, 2012/08/26
Re: Emacs and nxml/nxhtml-mode: memory overflow, Dmitry Gutov, 2012/08/27