unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problem opening an ObjC file
@ 2013-01-02 20:37 Stelian Iancu
  2013-01-02 22:58 ` Stelian Iancu
  0 siblings, 1 reply; 2+ messages in thread
From: Stelian Iancu @ 2013-01-02 20:37 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1521 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem opening an ObjC file
  2013-01-02 20:37 Problem opening an ObjC file Stelian Iancu
@ 2013-01-02 22:58 ` Stelian Iancu
  0 siblings, 0 replies; 2+ messages in thread
From: Stelian Iancu @ 2013-01-02 22:58 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

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.
>

[-- Attachment #2: Type: text/html, Size: 2069 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-02 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-02 20:37 Problem opening an ObjC file Stelian Iancu
2013-01-02 22:58 ` Stelian Iancu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).