From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: Emacs and nxml/nxhtml-mode: memory overflow Date: Mon, 27 Aug 2012 00:48:07 +0530 Message-ID: <87ehmtzcls.fsf@gmail.com> References: <503A343D.8020403@yandex.ru> <87d32dabgw.fsf@gmail.com> <503A73DB.9010109@mkblog.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346008650 13899 80.91.229.3 (26 Aug 2012 19:17:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2012 19:17:30 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: mb@mkblog.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 26 21:17:31 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 1T5iKw-0002Xc-Mm for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2012 21:17:30 +0200 Original-Received: from localhost ([::1]:39364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5iKu-0000oo-OT for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2012 15:17:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5iKp-0000oY-Dt for Help-gnu-emacs@gnu.org; Sun, 26 Aug 2012 15:17:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5iKo-0006PP-Eg for Help-gnu-emacs@gnu.org; Sun, 26 Aug 2012 15:17:23 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:61838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5iKo-0006PC-83 for Help-gnu-emacs@gnu.org; Sun, 26 Aug 2012 15:17:22 -0400 Original-Received: by pbbro12 with SMTP id ro12so6406362pbb.0 for ; Sun, 26 Aug 2012 12:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=xhDfKZiYh42f5DkegaTXXI/rKA2KOWRiH5iAYZpQtXU=; b=LLyJSkpL8VEym5wWvnpn+AKm5XhoJRJJmxSUgbjNJlPXmZxjt8HE6JNvRgqn7ssYE3 4OksK5xPA8YrUrfBv3+iXRVIobctl9eZV8AROWnHtoTj5yoXqK7os7Mw1AsjHWOVnn22 I9ng2GwOpYB6GFi05jMgLaA/i5AASFCK6J46JrJ8paS4gLZ5EBGL8Vs1NeFvxg9v2gLg k5rR86pNlXThaFPyZUoUFtZ+WfxVxuYioVJfnCUXxM1EE2iPeLBPA0rfWGzyaOpwPF+h wYe+ZPwNzuNLclCAIA4/GBRr24a69jCXYcth+qNPfmLCc2HWo9SlFbY2eChhd5jjZvaq BCRQ== Original-Received: by 10.66.77.7 with SMTP id o7mr16442687paw.37.1346008641438; Sun, 26 Aug 2012 12:17:21 -0700 (PDT) Original-Received: from debian-6.05 ([115.241.58.246]) by mx.google.com with ESMTPS id jz10sm3877080pbc.8.2012.08.26.12.17.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 12:17:20 -0700 (PDT) In-Reply-To: <503A73DB.9010109@mkblog.org> (Martin Butz's message of "Sun, 26 Aug 2012 21:07:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 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:86533 Archived-At: 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 > Thanks > Martin --