[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-subword-mode
From: |
Alan Mackenzie |
Subject: |
Re: c-subword-mode |
Date: |
Wed, 1 Mar 2006 20:34:02 +0000 (GMT) |
Hi, Nick!
On Mon, 27 Feb 2006, Nick Roberts wrote:
>With CC Mode 5.31.3 and GNU Emacs 22.0.50.71 (i686-pc-linux-gnu, X toolkit,
>Xaw3d scroll bars) of 2006-02-25:
>Sometimes I get error messages saying that c-subword-mode is a void variable.
>c-subword-mode seems to be a function, so the patch below might be a fix.
c-subword-mode is normally defined as (define-minor-mode c-subword-mode
....), so it is has both function and variable bindings. [On older
Emacsen (< 21.1) lacking define-minor-mode, a stub function is defined instead.]
Can you give any more details about how you get a "void variable" error.
It surely cannot be at cc-cmds.el L263. I don't think the patch is
right.
>--
>Nick http://www.inet.net.nz/~nickrob
>*** cc-cmds.el 25 Feb 2006 17:51:43 +1300 1.44
>--- cc-cmds.el 27 Feb 2006 11:43:36 +1300
>*************** With universal argument, inserts the ana
>*** 259,265 ****
> (if c-hungry-delete-key "h" "")
> (if (and
> ;; cc-subword might not be loaded.
>! (boundp 'c-subword-mode)
> (symbol-value 'c-subword-mode))
> "w"
> "")))
>--- 259,265 ----
> (if c-hungry-delete-key "h" "")
> (if (and
> ;; cc-subword might not be loaded.
>! (fboundp 'c-subword-mode)
> (symbol-value 'c-subword-mode))
> "w"
> "")))
--
Alan Mackenzie (Munich, Germany)