Today I wanted to open an ObjC file in Emacs (on the Mac) and I got the following backtrace:
Debugger entered--Lisp error: (void-function c-subword-mode)
c-subword-mode()
run-hooks(change-major-mode-after-body-hook prog-mode-hook c-mode-common-hook objc-mode-hook objc-mode-hook)
apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook c-mode-common-hook objc-mode-hook objc-mode-hook))
run-mode-hooks(objc-mode-hook)
objc-mode()
set-auto-mode-0(objc-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer TestAppDelegate.m> "~/Dropbox/Projects/Test/TestAppDelegate.m" nil nil "~Dropbox/Projects/Test/TestAppDelegate.m" (17207704 16777219))
find-file-noselect("/Users/stelianiancu/Dropbox/Projects/Test/TestAppDelegate.m" nil nil)
ido-file-internal(raise-frame)
ido-find-file()
call-interactively(ido-find-file nil nil)
If I then go to the list of buffers I can see the file there and I can switch to it. However getting this error when trying to open it puzzles me.
Any idea what might be wrong here?
Thanks!
S.