diff options
author | Alan Mackenzie <acm@muc.de> | 2021-08-21 09:39:31 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2021-08-21 09:41:26 +0000 |
commit | 20e32f3c3fee1446768786c04b52cde4ce313e37 (patch) | |
tree | 6185b2cc96ddceac070d488c7340b81348fdda8d /lisp/progmodes/cc-defs.el | |
parent | 2dfc2bb9bdc685666f6e78d2d169130e28137406 (diff) | |
download | emacs-20e32f3c3fee1446768786c04b52cde4ce313e37.tar.gz emacs-20e32f3c3fee1446768786c04b52cde4ce313e37.tar.bz2 emacs-20e32f3c3fee1446768786c04b52cde4ce313e37.zip |
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.
Diffstat (limited to 'lisp/progmodes/cc-defs.el')
-rw-r--r-- | lisp/progmodes/cc-defs.el | 16 |
1 files 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. |