From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Newsgroups: gmane.emacs.help Subject: error `c-lang-defconst' must be used in a file Date: Sun, 4 Oct 2009 09:27:21 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1254720320 4230 80.91.229.12 (5 Oct 2009 05:25:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2009 05:25:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 07:25:14 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mug4P-0000Wd-JM for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Oct 2009 07:25:13 +0200 Original-Received: from localhost ([127.0.0.1]:54246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mug4P-0003DB-Ds for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Oct 2009 01:25:13 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!j9g2000vbp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 93.125.167.94 Original-X-Trace: posting.google.com 1254673642 17374 127.0.0.1 (4 Oct 2009 16:27:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 4 Oct 2009 16:27:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j9g2000vbp.googlegroups.com; posting-host=93.125.167.94; posting-account=eSv9jAoAAABOki9g4H1AstlVmnvbkn8_ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.2) Gecko/20090730 SUSE/3.5.2-2.1 Firefox/3.5.2, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173568 X-Mailman-Approved-At: Mon, 05 Oct 2009 01:24:37 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68673 Archived-At: Dear all, I am trying to use GNU Emacs (version 23.1.1, cc-mode version 5.31.7) on a server at work and load a very simple .emacs initialisation file whose first two lines are essentially: *** snip *** (setq load-path (cons "~/.emacs.d/" load-path)) (require 'ox-mode) *** snip *** the latter of which is a major mode for the Ox programming language, provided by John Zedlewski (http://www.johnzed.com/code/oxmode/) and based on derived-mode-ex.el by Martin Stjernholm. Yet when loading an Ox file I get the error message: *** snip *** error `c-lang-defconst' must be used in a file *** snip *** I am unfortunately at a loss as to how this can be solved. Using the -- debug-init option gives a backtrace of 10 lines or so which, being a novice, I do not know how to interpret. The two configuration files seem to work fine when I use them on my home machine (GNU Emacs 22.1.1 and cc-mode 5.31.4). At least, I don't get this error message. Any help or suggestion on solving this problem are appreciated. Many thanks, Michael