[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 74100997b3: * lisp/progmodes/cc-cmds.el (indent-new-comment-line)
From: |
Stefan Monnier |
Subject: |
master 74100997b3: * lisp/progmodes/cc-cmds.el (indent-new-comment-line): Delete advice |
Date: |
Mon, 4 Apr 2022 15:11:55 -0400 (EDT) |
branch: master
commit 74100997b3853a6c00c60e1998ed5a86a9a01bc3
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* 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 e9237bb01e..f1f61f7e08 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 74100997b3: * lisp/progmodes/cc-cmds.el (indent-new-comment-line): Delete advice,
Stefan Monnier <=