From 20e32f3c3fee1446768786c04b52cde4ce313e37 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sat, 21 Aug 2021 09:39:31 +0000 Subject: [PATCH] CC Mode: Move a macro to before its first use in a file. * 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 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index 3cb1912b730..fe6ff220baf 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el @@ -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))) -(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. -- 2.39.5