# HG changeset patch # User Richard M. Stallman # Date 847045404 0 # Node ID fd19350c1405f513bad1b6b915431e36449a9797 # Parent 08855b88e9552f368ede131a236883a0878dd35a (comment-region): With just C-u as arg, delete any number of comment-end delimiters from end of line. diff -r 08855b88e955 -r fd19350c1405 lisp/simple.el --- a/lisp/simple.el Sun Nov 03 17:09:27 1996 +0000 +++ b/lisp/simple.el Sun Nov 03 18:23:24 1996 +0000 @@ -2264,11 +2264,11 @@ ;; 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)))