Moonfire Games

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: void function (c-filter-ops)  (Read 5149 times)

D. Moonfire

  • Divinity +N
  • 300 point character
  • *****
  • Status: 0
  • Posts: 309
    • View Profile
    • WWW
void function (c-filter-ops)
« on: December 27, 2005, 09:44:28 AM »
Apparently some of you are having trouble with byte-compiling csharp mode because it has trouble finding c-filter-op. I don't have this problem, so I need to track it down. What versions of cc-mode, Emacs, and platform are you using? Also, where is cc-mode placed and where is csharp-mode placed? And maybe the entire error message?
Logged

eald

  • 100 point character
  • **
  • Status: 0
  • Posts: 2
    • View Profile
Re: void function (c-filter-ops)
« Reply #1 on: January 07, 2006, 01:29:06 AM »
Hi, I'm trying with Emacs from cvs 20060103, CC-mode is 5.31 on Linux.

When trying to compile get this:

In toplevel form:
csharp-mode.el:306:1:Warning: defcustom for `csharp-font-lock-extra-types'
    fails to specify containing group
Eval error in the `c-lang-defconst' for `c-expr-kwds' in csharp-mode:
Eval error in the `c-lang-defconst' for `c-keywords' in csharp-mode:
Eval error in the `c-lang-defconst' for `c-regular-keywords-regexp' in csharp-mode:
Eval error in the `c-lang-defconst' for `c-basic-matchers-before' in csharp-mode:
Eval error in the `c-lang-defconst' for `c-matchers-2' in csharp-mode:
csharp-mode.el:313:1:Error: Symbol's function definition is void: c-filter-ops

And when trying to use I get:
Eval error in the `c-lang-defconst' for `c-expr-kwds' in csharp-mode:
Eval error in the `c-lang-defconst' for `c-keywords' in csharp-mode:
Eval error in the `c-lang-defconst' for `c-regular-keywords-regexp' in csharp-mode:
Eval error in the `c-lang-defconst' for `c-basic-matchers-before' in csharp-mode:
Eval error in the `c-lang-defconst' for `c-matchers-2' in csharp-mode:
File mode specification error: (void-function c-filter-ops)

Thanks
Logged

D. Moonfire

  • Divinity +N
  • 300 point character
  • *****
  • Status: 0
  • Posts: 309
    • View Profile
    • WWW
Re: void function (c-filter-ops)
« Reply #2 on: January 09, 2006, 08:33:08 AM »
I don't have a problem, so it must be something I missed. Can you try this:

1. Put the csharp-mode.el file into the same directory as cc-mode 5.31 or 5.31.1 (both work for me).
2. Run: emacs -batch -no-site-file -q -f batch-byte-compile /path/to/cc-mode-and-csharp/*.el

See if the error still happens?
Logged

eald

  • 100 point character
  • **
  • Status: 0
  • Posts: 2
    • View Profile
Re: void function (c-filter-ops)
« Reply #3 on: January 14, 2006, 12:17:36 AM »
First, the CC-mode is from the emacs, so there is a progmodes directory where seems that reside every CC-mode file, but not sure really. Then trying to compile there, I get the same error when trying to compile in other directory.

I *think* that could be because the emacs version (unstable cvs stuff), but not sure about it.

Regards
Logged

D. Moonfire

  • Divinity +N
  • 300 point character
  • *****
  • Status: 0
  • Posts: 309
    • View Profile
    • WWW
Re: void function (c-filter-ops)
« Reply #4 on: January 16, 2006, 08:01:04 AM »
First, the CC-mode is from the emacs, so there is a progmodes directory where seems that reside every CC-mode file, but not sure really. Then trying to compile there, I get the same error when trying to compile in other directory.

I *think* that could be because the emacs version (unstable cvs stuff), but not sure about it.

Oh, I never tested this with CVS. Would you be willing to see if it works with the latest release of Emacs? If it is, we'll have to see what changed.
Logged

eldar

  • 100 point character
  • **
  • Status: 0
  • Posts: 1
    • View Profile
Re: void function (c-filter-ops)
« Reply #5 on: January 24, 2006, 01:06:09 PM »
Here's a message I sent to bug-cc-mode@gnu.org:

The function c-filter-ops in cc-langs.el was changed in cc-mode to
be a 'eval-when-compile' function at some point. As a result,
csharp-mode found here: http://mfgames.com/linux/docs/csharp-mode
no longer compiles/works.

Since there are few working csharp-mode's out there, and this is
one of the best options, I'm wondering how csharp-mode can be
made to work without c-filter-ops or if the cc-mode folks could
remove 'eval-when-compile' from c-filter-ops, so its usable by
other lisp modules.
Logged

D. Moonfire

  • Divinity +N
  • 300 point character
  • *****
  • Status: 0
  • Posts: 309
    • View Profile
    • WWW
Re: void function (c-filter-ops)
« Reply #6 on: January 25, 2006, 09:50:52 AM »
If those interested be willing to try this, I think this fixes the bug. It is going to be version 0.6.0 if it does work, I don't think I can fix the other bugs at this point and this one needs to be handled.
Logged

D. Moonfire

  • Divinity +N
  • 300 point character
  • *****
  • Status: 0
  • Posts: 309
    • View Profile
    • WWW
Re: void function (c-filter-ops)
« Reply #7 on: February 06, 2006, 07:15:32 AM »
Apparently cc-mode 5.31.2 fixes this bug (changes the core one), so I won't post csharp-mode 0.6.0 up.
Logged
Pages: [1]   Go Up
« previous next »