From: Stefan Monnier Date: Mon, 4 Apr 2022 19:11:46 +0000 (-0400) Subject: * lisp/progmodes/cc-cmds.el (indent-new-comment-line): Delete advice X-Git-Tag: emacs-29.0.90~1931^2~772 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=74100997b3853a6c00c60e1998ed5a86a9a01bc3;p=emacs.git * lisp/progmodes/cc-cmds.el (indent-new-comment-line): Delete advice This piece of advice was effective only for Emacs<20.1 and old XEmacs (at least older than Aug 2007). --- diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index e9237bb01e2..f1f61f7e087 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -5026,18 +5026,6 @@ If a fill prefix is specified, it overrides all the above." (defalias 'c-comment-line-break-function 'c-indent-new-comment-line) (make-obsolete 'c-comment-line-break-function 'c-indent-new-comment-line "21.1") -;; Advice for Emacsen older than 21.1 (!), released 2001/10 -(unless (boundp 'comment-line-break-function) - (defvar c-inside-line-break-advice nil) - (defadvice indent-new-comment-line (around c-line-break-advice - activate preactivate) - "Call `c-indent-new-comment-line' if in CC Mode." - (if (or c-inside-line-break-advice - (not c-buffer-is-cc-mode)) - ad-do-it - (let ((c-inside-line-break-advice t)) - (c-indent-new-comment-line (ad-get-arg 0)))))) - (defun c-context-line-break () "Do a line break suitable to the context.