all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruce Korb <bruce.korb@gmail.com>
To: GNU Emacs <help-gnu-emacs@gnu.org>
Subject: File mode specification error: (void-variable c-syntactic-context)
Date: Tue, 21 Apr 2015 14:33:28 -0700	[thread overview]
Message-ID: <CAKRnqNJ3oswJ4p2U9S-dW8h5PFryAXeA7bWgc4gOWRYNKi8CHg@mail.gmail.com> (raw)

So I turned on debugging.  I got what looks like a trace, but it is
pretty indecipherable to me.
Can anyone make sense of this?  I am trying to use .dir-locals.el for
setting c style to linux:


(
 (nil . ((indent-tabs-mode . t)
(tab-width . 8)
         (show-trailing-whitespace . t)
(fill-column . 120)))

 (c-mode . ((c-file-style . "linux")))
)

The trace:


Debugger entered--Lisp error: (void-variable c-syntactic-context)
  (assq (quote cpp-macro) c-syntactic-context)
  (or (assq (quote cpp-macro) c-syntactic-context) (assq (quote
comment-intro) c-syntactic-context))
  (not (or (assq (quote cpp-macro) c-syntactic-context) (assq (quote
comment-intro) c-syntactic-context)))
  (and (not (or (assq (quote cpp-macro) c-syntactic-context) (assq
(quote comment-intro) c-syntactic-context))) (c-intersect-lists
c-inside-block-syms c-syntactic-context) (save-excursion
(back-to-indentation) (< (current-column)
c-label-minimum-indentation)))
  (if (and (not (or (assq (quote cpp-macro) c-syntactic-context) (assq
(quote comment-intro) c-syntactic-context))) (c-intersect-lists
c-inside-block-syms c-syntactic-context) (save-excursion
(back-to-indentation) (< (current-column)
c-label-minimum-indentation))) (progn (c-shift-line-indentation (-
c-label-minimum-indentation (current-indentation)))))
  c-gnu-impose-minimum()
  my-c-mode-common-hook()
  run-hooks(change-major-mode-after-body-hook c-mode-common-hook c-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook
c-mode-common-hook c-mode-hook))
  run-mode-hooks(c-mode-common-hook c-mode-hook)
  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 event-xfer.c>
"~/workspace/skyhawk/evt/src/event-xfer.c" nil nil
"~/workspace/skyhawk/evt/src/event-xfer.c" (5388127 2304))
  find-file-noselect("~/workspace/skyhawk/evt/src/event-xfer.c" nil nil t)
  find-file("~/workspace/skyhawk/evt/src/event-xfer.c" t)
  call-interactively(find-file nil nil)


$ emacs --version
GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
[..]



                 reply	other threads:[~2015-04-21 21:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKRnqNJ3oswJ4p2U9S-dW8h5PFryAXeA7bWgc4gOWRYNKi8CHg@mail.gmail.com \
    --to=bruce.korb@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.