我不知道我做了什么,但突然之间,当我在Aquamacs中执行各种操作时,我会遇到很多错误。例如,当我试图打开一个C文件时,我得到了“文件模式规范错误:(错误类型-参数编号-或标记- file )”错误。如果打开调试器,将得到以下堆栈跟踪:
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
define-abbrev([## 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 else 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...] "else" "else" c-electric-continued-statement 0 t)
apply(define-abbrev [## 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 else 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...] ("else" "else" c-electric-continued-statement 0 t))
byte-code("\302\303\304 @\305\"#\207" [table defs apply define-abbrev append (t)] 6)
c-define-abbrev-table(c-mode-abbrev-table (("else" "else" c-electric-continued-statement 0) ("while" "while" c-electric-continued-statement 0)) "Abbreviation table used in c-mode buffers.")
c-mode()
set-auto-mode-0(c-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer EventLog.h> "~/repositories/ghc/rts/eventlog/EventLog.h" nil nil "~/repositories/ghc/rts/eventlog/EventLog.h" (12100462 16777218))
find-file-noselect("~/.cabal/../repositories/ghc/rts/eventlog/EventLog.h" nil nil t)
find-file("~/.cabal/../repositories/ghc/rts/eventlog/EventLog.h" t)
call-interactively(find-file nil nil)
command-execute(find-file)有人对这里会发生什么事有什么想法吗?
发布于 2015-08-18 14:41:36
好的,所以我不知道发生了什么,但我能够通过进行(非常)干净的重新安装来修复它。我首先删除了应用程序文件夹,然后对文件系统中的任何Aquamacs文件夹进行了递归查找。
find . -regex "Aquamacs.*" -maxdepth 5给了我一份所有这些文件的清单。在卸载应用程序时,有许多缓存的首选目录不会被删除。我第一次尝试使用,它无法获得所有这些。在我删除了每个Aquamacs相关目录并重新安装之后,它就正常工作了。
https://stackoverflow.com/questions/32054625
复制相似问题