]> git.eshelyaron.com Git - emacs.git/commitdiff
CC Mode: Move a macro to before its first use in a file.
authorAlan Mackenzie <acm@muc.de>
Sat, 21 Aug 2021 09:39:31 +0000 (09:39 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 21 Aug 2021 09:41:26 +0000 (09:41 +0000)
* lisp/progmodes/cc-defs.el (c-benign-error): Move earlier in the file for the
benefit of c-tnt-chng-cleanup.

lisp/progmodes/cc-defs.el

index 3cb1912b730fc778e98bb67b3231edf5b8e84f80..fe6ff220baf17f305b84fb105ab0d8a043d6d3d3 100644 (file)
@@ -234,6 +234,14 @@ On XEmacs and older Emacsen, this refontifies that region immediately."
       `(font-lock-flush ,beg ,end)
     `(font-lock-fontify-region ,beg ,end)))
 
+(defmacro c-benign-error (format &rest args)
+  ;; Formats an error message for the echo area and dings, i.e. like
+  ;; `error' but doesn't abort.
+  (declare (debug t))
+  `(progn
+     (message ,format ,@args)
+     (ding)))
+
 (defmacro c-point (position &optional point)
   "Return the value of certain commonly referenced POSITIONs relative to POINT.
 The current point is used if POINT isn't specified.  POSITION can be
@@ -1043,14 +1051,6 @@ be after it."
   '(if c-vsemi-status-unknown-p-fn (funcall c-vsemi-status-unknown-p-fn)))
 
 \f
-(defmacro c-benign-error (format &rest args)
-  ;; Formats an error message for the echo area and dings, i.e. like
-  ;; `error' but doesn't abort.
-  (declare (debug t))
-  `(progn
-     (message ,format ,@args)
-     (ding)))
-
 (defmacro c-with-syntax-table (table &rest code)
   ;; Temporarily switches to the specified syntax table in a failsafe
   ;; way to execute code.