(comment-region): With just C-u as arg,

delete any number of comment-end delimiters from end of line.
This commit is contained in:
Richard M. Stallman 1996-11-03 18:23:24 +00:00
parent 7e02c4ddef
commit 5c8ddcfb2e

View file

@ -2264,11 +2264,11 @@ not end the comment. Blank lines do not get comments."
;; This is questionable if comment-end ends in
;; whitespace. That is pretty brain-damaged,
;; though.
(skip-chars-backward " \t")
(if (and (>= (- (point) (point-min)) (length ce))
(save-excursion
(backward-char (length ce))
(looking-at (regexp-quote ce))))
(while (progn (skip-chars-backward " \t")
(and (>= (- (point) (point-min)) (length ce))
(save-excursion
(backward-char (length ce))
(looking-at (regexp-quote ce)))))
(delete-char (- (length ce)))))
(let ((count numarg))
(while (> 1 (setq count (1+ count)))