From: Jambunathan K <kjambunathan@gmail.com>
To: mb@mkblog.org
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Emacs and nxml/nxhtml-mode: memory overflow
Date: Mon, 27 Aug 2012 00:48:07 +0530 [thread overview]
Message-ID: <87ehmtzcls.fsf@gmail.com> (raw)
In-Reply-To: <503A73DB.9010109@mkblog.org> (Martin Butz's message of "Sun, 26 Aug 2012 21:07:07 +0200")
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
--
next prev parent reply other threads:[~2012-08-26 19:18 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 [this message]
2012-08-27 9:37 ` Richard Riley
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=87ehmtzcls.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=mb@mkblog.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.