aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cc-cmds.el24
1 files changed, 13 insertions, 11 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index b17703b0305..112fa50ce8f 100644
--- a/lisp/progmodes/cc-cmds.el
+++ b/lisp/progmodes/cc-cmds.el
@@ -3974,17 +3974,19 @@ command to conveniently insert and align the necessary backslashes."
3974 ;; "Invalid search bound (wrong side of point)" 3974 ;; "Invalid search bound (wrong side of point)"
3975 ;; error in the subsequent re-search. Maybe 3975 ;; error in the subsequent re-search. Maybe
3976 ;; another fix would be needed (2007-12-08). 3976 ;; another fix would be needed (2007-12-08).
3977 (or (<= (- (cdr c-lit-limits) 2) (point)) 3977; (or (<= (- (cdr c-lit-limits) 2) (point))
3978 (and 3978; 2010-10-17 Construct removed.
3979 (search-forward-regexp 3979; (or (< (- (cdr c-lit-limits) 2) (point))
3980 (concat "\\=[ \t]*\\(" c-current-comment-prefix "\\)") 3980 (and
3981 (- (cdr c-lit-limits) 2) t) 3981 (search-forward-regexp
3982 (not (search-forward-regexp 3982 (concat "\\=[ \t]*\\(" c-current-comment-prefix "\\)")
3983 "\\(\\s \\|\\sw\\)" 3983 (- (cdr c-lit-limits) 2) t)
3984 (- (cdr c-lit-limits) 2) 'limit)) 3984 (not (search-forward-regexp
3985 ;; The comment ender IS on its own line. Exclude 3985 "\\(\\s \\|\\sw\\)"
3986 ;; this line from the filling. 3986 (- (cdr c-lit-limits) 2) 'limit))
3987 (set-marker end (c-point 'bol))))) 3987 ;; The comment ender IS on its own line. Exclude this
3988 ;; line from the filling.
3989 (set-marker end (c-point 'bol))));)
3988 3990
3989 ;; The comment ender is hanging. Replace all space between it 3991 ;; The comment ender is hanging. Replace all space between it
3990 ;; and the last word either by one or two 'x's (when 3992 ;; and the last word either by one or two 'x's (when