all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org, bug-cc-mode@gnu.org
Subject: Re: c-subword-mode
Date: Wed, 1 Mar 2006 20:34:02 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.3.96.1060301202418.217B-100000@acm.acm> (raw)
In-Reply-To: <17410.12487.182878.922032@kahikatea.snap.net.nz>

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)




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


  parent reply	other threads:[~2006-03-01 20:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-26 22:50 c-subword-mode Nick Roberts
2006-03-01 17:55 ` c-subword-mode Richard Stallman
2006-03-01 20:39   ` c-subword-mode Nick Roberts
2006-03-04 13:38     ` c-subword-mode Richard Stallman
2006-03-01 20:34 ` Alan Mackenzie [this message]
2006-03-01 20:48   ` c-subword-mode Nick Roberts

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.96.1060301202418.217B-100000@acm.acm \
    --to=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.