emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: void-variable c-subword-mode with debug-on-error


From: Stefan Monnier
Subject: Re: void-variable c-subword-mode with debug-on-error
Date: Fri, 14 Apr 2006 07:28:37 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Stefan had a different suggestion, but I couldn't parse it.

Hard to believe.  Here's the patch I installed.


        Stefan


--- lisp/progmodes/cc-langs.el  24 Feb 2006 15:33:02 -0000      1.37
+++ lisp/progmodes/cc-langs.el  14 Apr 2006 11:29:32 -0000
@@ -267,7 +267,8 @@
        ["Hungry delete"         c-toggle-hungry-state
        :style toggle :selected c-hungry-delete-key]
        ["Subword mode"          c-subword-mode
-       :style toggle :selected c-subword-mode])))
+       :style toggle :selected (and (boundp 'c-subword-mode)
+                                     c-subword-mode)])))
 
 
 ;;; Syntax tables.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]