]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/cc-cmds.el (indent-new-comment-line): Delete advice
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Apr 2022 19:11:46 +0000 (15:11 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Apr 2022 19:11:46 +0000 (15:11 -0400)
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

index e9237bb01e21cbe37cf001f084108ec091672af1..f1f61f7e0873f128138c6aa4b34aec26dc4737b0 100644 (file)
@@ -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.