From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.emacs.help Subject: File mode specification error: (void-variable c-syntactic-context) Date: Tue, 21 Apr 2015 14:33:28 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1429652044 4903 80.91.229.3 (21 Apr 2015 21:34:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2015 21:34:04 +0000 (UTC) To: GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 21 23:34:04 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ykfnv-0000HM-B7 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2015 23:34:03 +0200 Original-Received: from localhost ([::1]:60477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykfnu-0005Xw-If for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2015 17:34:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykfnj-0005XS-RC for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 17:33:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ykfni-0006g9-3q for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 17:33:51 -0400 Original-Received: from mail-wg0-x236.google.com ([2a00:1450:400c:c00::236]:34588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykfnh-0006fq-Sz for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 17:33:50 -0400 Original-Received: by wgso17 with SMTP id o17so227672108wgs.1 for ; Tue, 21 Apr 2015 14:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=0bPFGEEuaTQEu3trhKieK8bbEOa4M2XrowiRhI+lUYs=; b=aRyF8+TerIcgfJu0Zq5CHG/ZsbPVoP+gfVYHYgptxiOELT8XF3nrv6E/AbS7anQhiX CrfOQQEFFfhemQ1/SB5wshf4NCixwWTUtjMW8X/618Qk0RysYP9yxFE+oDIHij1/jXAU 27CAvNcHpIu1P2qs2/eeFSOlqF7ibRMYd6E9udPbGMMkCQCYkgtYVlsfh2IWk6wOOENQ KTVSfmndVjZAG9iPNmG2ziisvGUFampHbMWMWVHEKUBkW60LTs63pGUkUJLvLM+9qpHd vfXTtBHtp0UsjTFgtVSXued980qoFq9EpOBTFwmSTCpWLa9n2CJX2HGh4tUdnTK18s+s 5YxA== X-Received: by 10.194.59.4 with SMTP id v4mr45758229wjq.54.1429652028637; Tue, 21 Apr 2015 14:33:48 -0700 (PDT) Original-Received: by 10.194.33.135 with HTTP; Tue, 21 Apr 2015 14:33:28 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103918 Archived-At: 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(# "~/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. [..]