unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
Cc: emacs-devel@gnu.org, bug-cc-mode@gnu.org
Subject: Re: c-subword-mode
Date: Thu, 2 Mar 2006 09:39:40 +1300	[thread overview]
Message-ID: <17414.1676.486704.666102@kahikatea.snap.net.nz> (raw)
In-Reply-To: <E1FEVYM-0002fA-Fh@fencepost.gnu.org>

 >     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.
 > 
 > That patch seems wrong to me.  If c-subword-mode is defined as a function 
 > and not as a variable, your patch will CAUSE such an error rather than
 > prevent it.

Yes it probably is wrong, but I don't see the point of the test if
c-subword-mode is a function.

 > Can you provide a Lisp-level backtrace from some occasion where you
 > get that error?

If I load a C file, I get:

Debugger entered--Lisp error: (void-variable c-subword-mode)
  c-update-modeline()
  c-basic-common-init(c-mode ((java-mode . "java") (awk-mode . "awk") (other . "gnu")))
  c-common-init(c-mode)
  c-mode()
  set-auto-mode-0(c-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer myprog.c> "~/myprog.c" nil nil "~/myprog.c" (458851 773))
  find-file-noselect("~/myprog.c" nil nil t)
  find-file("~/myprog.c" t)
  call-interactively(find-file)

It's probably due to my build.  If I load cc-mode first, I don't get the error.


-- 
Nick                                           http://www.inet.net.nz/~nickrob


-------------------------------------------------------
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


  reply	other threads:[~2006-03-01 20:39 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   ` Nick Roberts [this message]
2006-03-04 13:38     ` c-subword-mode Richard Stallman
2006-03-01 20:34 ` c-subword-mode Alan Mackenzie
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=17414.1676.486704.666102@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).