diff options
| author | Richard M. Stallman | 1994-02-04 01:13:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-04 01:13:05 +0000 |
| commit | ee095968e6eec243a912a1e6aff6ed93125824e8 (patch) | |
| tree | 3130e645f42c0a963f7aec26b79ec1b6f1800d21 | |
| parent | b72226e37e48efc1ad2c3af40d9c8fd7dd27ebbd (diff) | |
| download | emacs-ee095968e6eec243a912a1e6aff6ed93125824e8.tar.gz emacs-ee095968e6eec243a912a1e6aff6ed93125824e8.zip | |
(comment-region): Fix previous change.
| -rw-r--r-- | lisp/simple.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 909427aeb96..5acbdaeaf4f 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1854,16 +1854,16 @@ not end the comment. Blank lines do not get comments." | |||
| 1854 | (backward-char (length ce)) | 1854 | (backward-char (length ce)) |
| 1855 | (looking-at (regexp-quote ce)))) | 1855 | (looking-at (regexp-quote ce)))) |
| 1856 | (delete-char (- (length ce))))) | 1856 | (delete-char (- (length ce))))) |
| 1857 | (setq count numarg) | 1857 | (let ((count numarg)) |
| 1858 | (while (> 1 (setq count (1+ count))) | 1858 | (while (> 1 (setq count (1+ count))) |
| 1859 | (end-of-line) | 1859 | (end-of-line) |
| 1860 | ;; this is questionable if comment-end ends in whitespace | 1860 | ;; this is questionable if comment-end ends in whitespace |
| 1861 | ;; that is pretty brain-damaged though | 1861 | ;; that is pretty brain-damaged though |
| 1862 | (skip-chars-backward " \t") | 1862 | (skip-chars-backward " \t") |
| 1863 | (save-excursion | 1863 | (save-excursion |
| 1864 | (backward-char (length ce)) | 1864 | (backward-char (length ce)) |
| 1865 | (if (looking-at (regexp-quote ce)) | 1865 | (if (looking-at (regexp-quote ce)) |
| 1866 | (delete-char (length ce))))))) | 1866 | (delete-char (length ce)))))))) |
| 1867 | (forward-line 1)) | 1867 | (forward-line 1)) |
| 1868 | ;; Insert at beginning and at end. | 1868 | ;; Insert at beginning and at end. |
| 1869 | (if (looking-at "[ \t]*$") () | 1869 | (if (looking-at "[ \t]*$") () |