简体   繁体   English

emacs23菜单问题

[英]emacs23 menu problem

After some upgrades my emacs23 stopped work properly. 进行一些升级后,emacs23停止正常工作。 Some item in the main menu could not be open. 主菜单中的某些项目无法打开。 After F10 they start to work. F10之后,他们开始工作。 I reinstalled emacs - it does not help. 我重新安装了emacs-它没有帮助。 (I am using ubuntu 10.10 on Dell Latitude). (我在Dell Latitude上使用ubuntu 10.10)。 I will be thankful for any suggestion. 如有任何建议,我将不胜感激。

Could you please be more specific? 您能更具体一点吗? Usually Mx accelerate-menu helps when the menu option doesn't expand. 通常,当菜单选项不展开时, Mx accelerate-menu帮助。

I have issues with things not working quite often when I take a new emacs version. 当我使用新的emacs版本时,我遇到了一些问题,这些问题通常无法正常工作。 Usually it is some old custom emacs stuff of mine that no longer works. 通常是我的一些旧的自定义emacs东西不再起作用。 (I still have some lines in there that date back to the 20th Century). (我仍然有一些台词可以追溯到20世纪)。

Try renaming your .emacs file to something else (and then starting a new emacs session, of course). 尝试将.emacs文件重命名为其他名称(当然,然后开始一个新的emacs会话)。 If that fixes the issue, you can put it back, then selectively comment out portions of it until you find the culprit. 如果这样可以解决问题,则可以将其放回原处,然后有选择地将其部分注释掉,直到找到罪魁祸首。

If you have site-lisp set to somewhere besides the emacs tree itself, it could also be something in there (although usually you can track that down to start with via the .emacs file as mentioned above). 如果您将site-lisp设置为除emacs树本身之外的某个位置,则它也可能位于其中(尽管通常您可以如上所述通过.emacs文件来跟踪此内容)。 If you don't have site-lisp set outside your emacs tree, it could be that your .emacs file is looking for something in site-lisp that isn't in the new installation's site-lisp directory. 如果您在emacs树之外没有设置site-lisp,则可能是您的.emacs文件正在site-lisp中寻找不在新安装的site-lisp目录中的内容。

You could also try more recent emacs23: https://launchpad.net/~ubuntu-elisp/+archive/ppa . 您也可以尝试使用最新的emacs23: https ://launchpad.net/~ubuntu-elisp/+archive/ppa。 I actually had some libraries that didn't work properly with 23.1 that is in the 10.10 repos. 实际上,我有一些库无法与10.10回购中的23.1一起正常使用。

To add to TED's suggestion: When trying to debug your .emacs file, use a binary search. 要添加到TED的建议中:在尝试调试.emacs文件时,请使用二进制搜索。 Comment out half of it (using command comment-region ), then 3/4, then 7/8... until you locate the culprit. 注释掉其中一半(使用命令comment-region ),然后comment-region 3/4,然后comment-region 7/8 ...,直到找到罪魁祸首。 Command comment-region also *un*comments the region -- check its doc. 命令comment-region还会* un *注释区域-检查其文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM