From 74100997b3853a6c00c60e1998ed5a86a9a01bc3 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 4 Apr 2022 15:11:46 -0400 Subject: [PATCH] * 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). --- lisp/progmodes/cc-cmds.el | 12 ------------ 1 file changed, 12 deletions(-) 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. -- 2.39.5