help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem opening an ObjC file


From: Stelian Iancu
Subject: Re: Problem opening an ObjC file
Date: Wed, 2 Jan 2013 23:58:16 +0100

Found the problem. Was because of this line in my config:

  (add-hook 'objc-mode-hook 'c-subword-mode)



On Wed, Jan 2, 2013 at 9:37 PM, Stelian Iancu <lists@siancu.net> wrote:
Hello,

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]