emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r112754: * cc-vars.el (c-macro-names-


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r112754: * cc-vars.el (c-macro-names-with-semicolon): Move definition before use.
Date: Mon, 27 May 2013 23:55:48 -0700
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 112754
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Mon 2013-05-27 23:55:48 -0700
message:
  * cc-vars.el (c-macro-names-with-semicolon): Move definition before use.
modified:
  lisp/ChangeLog
  lisp/progmodes/cc-vars.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-05-28 06:54:23 +0000
+++ b/lisp/ChangeLog    2013-05-28 06:55:48 +0000
@@ -1,5 +1,8 @@
 2013-05-28  Glenn Morris  <address@hidden>
 
+       * progmodes/cc-vars.el (c-macro-names-with-semicolon):
+       Move definition before use.
+
        * play/dunnet.el (byte-compile-warnings): Don't disable them all.
        (dun-unix-verbs): Remove dun-zippy.
        (dun-zippy): Remove function.

=== modified file 'lisp/progmodes/cc-vars.el'
--- a/lisp/progmodes/cc-vars.el 2013-01-01 09:11:05 +0000
+++ b/lisp/progmodes/cc-vars.el 2013-05-28 06:55:48 +0000
@@ -1622,6 +1622,24 @@
 )
 (make-variable-buffer-local 'c-macro-with-semi-re)
 
+(defvar c-macro-names-with-semicolon
+  '("Q_OBJECT" "Q_PROPERTY" "Q_DECLARE" "Q_ENUMS")
+  "List of #defined symbols whose expansion ends with a semicolon.
+Alternatively it can be a string, a regular expression which
+matches all such symbols.
+
+The \"symbols\" must be syntactically valid identifiers in the
+target language \(C, C++, Objective C), or \(as the case may be)
+the regular expression must match only valid identifiers.
+
+If you change this variable's value, call the function
+`c-make-macros-with-semi-re' to set the necessary internal
+variables.
+
+Note that currently \(2008-11-04) this variable is a prototype,
+and is likely to disappear or change its form soon.")
+(make-variable-buffer-local 'c-macro-names-with-semicolon)
+
 (defun c-make-macro-with-semi-re ()
   ;; Convert `c-macro-names-with-semicolon' into the regexp
   ;; `c-macro-with-semi-re' (or just copy it if it's already a re).
@@ -1643,24 +1661,6 @@
 c-macro-names-with-semicolon: %s"
                    c-macro-names-with-semicolon))))))
 
-(defvar c-macro-names-with-semicolon
-  '("Q_OBJECT" "Q_PROPERTY" "Q_DECLARE" "Q_ENUMS")
-  "List of #defined symbols whose expansion ends with a semicolon.
-Alternatively it can be a string, a regular expression which
-matches all such symbols.
-
-The \"symbols\" must be syntactically valid identifiers in the
-target language \(C, C++, Objective C), or \(as the case may be)
-the regular expression must match only valid identifiers.
-
-If you change this variable's value, call the function
-`c-make-macros-with-semi-re' to set the necessary internal
-variables.
-
-Note that currently \(2008-11-04) this variable is a prototype,
-and is likely to disappear or change its form soon.")
-(make-variable-buffer-local 'c-macro-names-with-semicolon)
-
 (defvar c-file-style nil
   "Variable interface for setting style via File Local Variables.
 In a file's Local Variable section, you can set this variable to a


reply via email to

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