diff options
| author | Stefan Monnier | 2001-02-22 01:48:24 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-02-22 01:48:24 +0000 |
| commit | 76a4de07253dab62ca731fb5db09309a07205a09 (patch) | |
| tree | 11c4ad98717ad40987f8f7eb8b752497f8feb47c | |
| parent | 2f4c9a87dd2cf316868d146db66c988f2886c9a5 (diff) | |
| download | emacs-76a4de07253dab62ca731fb5db09309a07205a09.tar.gz emacs-76a4de07253dab62ca731fb5db09309a07205a09.zip | |
(comment-forward): Skip the comment-start before
searching for the comment-end.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/newcomment.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b807d9e6bc2..3a35143a68a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-02-21 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * newcomment.el (comment-forward): Skip the comment-start before | ||
| 4 | searching for the comment-end. | ||
| 5 | |||
| 1 | 2001-02-21 Dave Love <fx@gnu.org> | 6 | 2001-02-21 Dave Love <fx@gnu.org> |
| 2 | 7 | ||
| 3 | * custom.el (custom-initialize-changed, defcustom): Doc fix. | 8 | * custom.el (custom-initialize-changed, defcustom): Doc fix. |
diff --git a/lisp/newcomment.el b/lisp/newcomment.el index f67e81b3414..09b928dea26 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: code extracted from Emacs-20's simple.el | 5 | ;; Author: code extracted from Emacs-20's simple.el |
| 6 | ;; Maintainer: Stefan Monnier <monnier@cs.yale.edu> | 6 | ;; Maintainer: Stefan Monnier <monnier@cs.yale.edu> |
| 7 | ;; Keywords: comment uncomment | 7 | ;; Keywords: comment uncomment |
| 8 | ;; Revision: $Id: newcomment.el,v 1.28 2000/12/11 21:41:35 monnier Exp $ | 8 | ;; Revision: $Id: newcomment.el,v 1.29 2000/12/18 03:17:31 monnier Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -367,6 +367,7 @@ and can use regexps instead of syntax." | |||
| 367 | (skip-syntax-forward " ") | 367 | (skip-syntax-forward " ") |
| 368 | (setq n | 368 | (setq n |
| 369 | (if (and (looking-at comment-start-skip) | 369 | (if (and (looking-at comment-start-skip) |
| 370 | (goto-char (match-end 0)) | ||
| 370 | (re-search-forward comment-end-skip nil 'move)) | 371 | (re-search-forward comment-end-skip nil 'move)) |
| 371 | (1- n) -1))) | 372 | (1- n) -1))) |
| 372 | (= n 0)))) | 373 | (= n 0)))) |