[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 20e32f3: CC Mode: Move a macro to before its first use in a file.
From: |
Alan Mackenzie |
Subject: |
master 20e32f3: CC Mode: Move a macro to before its first use in a file. |
Date: |
Sat, 21 Aug 2021 05:41:49 -0400 (EDT) |
branch: master
commit 20e32f3c3fee1446768786c04b52cde4ce313e37
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>
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 3cb1912..fe6ff22 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 20e32f3: CC Mode: Move a macro to before its first use in a file.,
Alan Mackenzie <=