本文介绍了Emacs - nxhtml模式 - 内存已满的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在emacs中使用nxhtml模式,在几周之内我遇到问题。在工作emacs暂时停止,直到在模式行!MEM FULL!中显示消息;显然nxhtml模式正在填补内存,直到emacs停止工作。我正在使用html,php和css文件。



我不知道如何以一种有意义的方式调试这个问题。另外我似乎是唯一有这个问题的人,因为谷歌搜索没有提供任何答案这个问题。



我在Linux Mint 11系统上使用emacs 2.32 。我找不到nxhtml的简历,它表示从。



我设置了一个带有最小dot-emacs的测试场景只是测试nxhtml模式。这似乎是好的,但它并不反映我的生产力。在测试nxhtml模式是否不喜欢任何东西(在我的dot-emacs文件中调用)时,可能需要一周时间才能逐渐包含emacs中使用的所有内容(例如组织模式)。



还有另一种方法吗?
我可以找出什么原因导致内存过载?
有没有人使用nxhtml模式有类似的问题?



问候
Martin

解决方案

我遇到了与emacs 23.3相同的问题。最近我切换到一个版本24.1,希望问题会消失。 Hélas。



所以我切换到sgml模式

 (add- to-list'auto-mode-alist(cons(concat\\。(regexp-opt'(xmlxsdxsltxslhtmlhtmwsdlxml。模板xhtmljsp)t)\\\')'sgml-mode))


(add-hook'sgml-mode-hook
'(lambda()
(sgml-electric-tag-pair-mode)))

Actuall,您可以禁用xml验证:

 (setq rng-nxml-auto-validate-flag nil)

我在您的问题和意见后做到了,我没有问题。


working with nxhtml-mode in emacs, I get problems since a few weeks. While working emacs pauses unexpectingly until showing a message in the mode line "!MEM FULL!"; obviously nxhtml-mode is filling up the memory until emacs stopps to work. I am working with html, php and css files.

I have no idea how I could debug this problem in a meaningfull way. Also I seem to be the only one to have this problem, because googling did not deliver any answers to this question.

I am using emacs 2.32 on an Linux Mint 11 system. I can not find out the verson of nxhtml, it says revision 829 downloaded from http://bazaar.launchpad.net/~nxhtml/nxhtml/main/revision/829.

I set up a test scenario with a minimal dot-emacs just to test the nxhtml-mode. It seemed to be alright, but it does not reflect my productive set up. It would probably take a week or so to gradually include everything I used to use within emacs (e.g. org-mode) while testing whether nxhtml-mode does not like anything, which is called in my dot-emacs file.

Is there another way?Can I find out, what causes the memory overload?Does anyone has similar problems using nxhtml-mode?

GreetingsMartin

解决方案

I got the same problem with emacs 23.3. Recently I switched to a version 24.1 hoping the problem will dissapear. Hélas.

So I switched to the sgml-mode

(add-to-list 'auto-mode-alist (cons (concat "\\." (regexp-opt '("xml" "xsd" "xslt" "xsl" "html" "htm" "wsdl" "xml.template" "xhtml" "jsp") t) "\\'") 'sgml-mode))


(add-hook 'sgml-mode-hook
          '(lambda ()
             (sgml-electric-tag-pair-mode)))

Actuall, you can disable the xml validation:

(setq rng-nxml-auto-validate-flag nil)

I did it after your questions and comments and I don't have problems since.

这篇关于Emacs - nxhtml模式 - 内存已满的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 14:57