Jim Diamond | 25 Aug 2011 22:48
Picon
Picon

cc mode 5.32: c-init-language-vars not known

I just downloaded 5.32 to see if it fixes a bug I have in 5.31.
Unfortunately, I find another bug (using emacs 23.3) which gets in my
way...

cc-mode.el says

;; Other modes and packages which depend on CC Mode should do the
;; following to make sure everything is loaded and available for their
;; use:
;;
;; (require 'cc-mode)
;;
;; And in the major mode function:
;;
;; (c-initialize-cc-mode t)
;; (c-init-language-vars some-mode)
;; (c-common-init 'some-mode) ; Or perhaps (c-basic-common-init 'some-mode)
...

So I start emacs with
	emacs -Q qqq.q
and then switch to the *scratch* buffer and execute the following forms

----------------------

(setq load-path (append (list "/home/zsd/emacs/cc-mode-5.32") load-path))

(require 'cc-mode)

(eval-and-compile
   (c-add-language 'zsd-c-mode 'c-mode))

(defvar zsd-c-mode-syntax-table nil
    "Syntax table in use in zsd-c-mode buffers."
)

(defun
    zsd-c-mode ()
    "Major mode for editing C source code.
    Based loosely upon the Unipress Emacs electric-c mode."
    (interactive)
    (c-initialize-cc-mode t)
    (c-init-language-vars zsd-c-mode)
    (c-common-init 'zsd-c-mode)
    (setq zsd-c-font-lock-keywords-3 nil)
)

----------------------

I then switch back to qqq.q and
	M-x zsd-c-mode
for which I am awarded
	Symbol's function definition is void: c-init-language-vars

I'm open to suggestions as to how to proceed.

Cheers.
				Jim

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev


Gmane