From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Emacs and nxml/nxhtml-mode: memory overflow Date: Mon, 27 Aug 2012 10:37:25 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: <8td32c8ylm.fsf@news.eternal-september.org> References: <503A343D.8020403@yandex.ru> <87d32dabgw.fsf@gmail.com> <503A73DB.9010109@mkblog.org> <87ehmtzcls.fsf@gmail.com> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346060272 5690 80.91.229.3 (27 Aug 2012 09:37:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2012 09:37:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 27 11:37:52 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T5vlX-0006vM-PV for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2012 11:37:51 +0200 Original-Received: from localhost ([::1]:38732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vlV-0003Go-Rg for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2012 05:37:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vlQ-0003Gi-FZ for help-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:37:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5vlM-0003a7-3O for help-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:37:44 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vlL-0003a1-Sf for help-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:37:40 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T5vlJ-0006kU-6E for help-gnu-emacs@gnu.org; Mon, 27 Aug 2012 11:37:37 +0200 Original-Received: from client-86-31-168-154.oxfd.adsl.virginmedia.com ([86.31.168.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Aug 2012 11:37:37 +0200 Original-Received: from rileyrg by client-86-31-168-154.oxfd.adsl.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Aug 2012 11:37:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 75 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: client-86-31-168-154.oxfd.adsl.virginmedia.com X-Message-Smtp-Method: smtp smtp.gmail.com 587 rileyrg Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:AMHgY9/g2ZzangeEGp2hmN+Y6Es= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86542 Archived-At: Jambunathan K writes: > Martin Butz 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.