[英]Aquamacs File mode specification error
I'm not sure what I did, but all of the sudden, I am getting a bunch of errors when I perform various operations in Aquamacs. 我不确定自己做了什么,但是突然之间,当我在Aquamacs中执行各种操作时,我遇到了很多错误。 For example, when I try to open a C file, I get the error "File mode specification error: (wrong-type-argument number-or-marker-p nil)". 例如,当我尝试打开C文件时,出现错误“文件模式规范错误:(错误的类型参数数字或标记-p nil)”。 If I turn on the debugger, I get the following stack trace: 如果打开调试器,则会得到以下堆栈跟踪:
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)
Anyone have any ideas as to what might be going on here? 任何人对这里可能发生的事情有任何想法吗?
OK, so I have no idea what happened, but I was able to fix it by doing a (very) clean reinstall. 好的,所以我不知道发生了什么,但是我能够通过(非常)干净的重新安装来修复它。 I first deleted the application folder, and then did a recursive find for any Aquamacs folder in the file system. 我首先删除了应用程序文件夹,然后对文件系统中的所有Aquamacs文件夹进行了递归查找。
find . -regex "Aquamacs.*" -maxdepth 5
was able to give me a listing of all such files. 能够给我列出所有这些文件。 There are a bunch of cached preference directories that do not get deleted when the application is uninstalled. 卸载应用程序时,有一堆缓存的首选项目录不会被删除。 I first tried using App Cleaner, which wasn't able to get all of these. 我首先尝试使用App Cleaner,但无法获得所有这些。 After I deleted every Aquamacs related directory, and reinstalled, it worked just fine. 在删除所有与Aquamacs相关的目录并重新安装后,它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.