diff options
| author | Stefan Monnier | 2007-04-01 19:33:44 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-04-01 19:33:44 +0000 |
| commit | 5605893d03d128a088eca3ea36af392bf7d111eb (patch) | |
| tree | 528369f25645ae28708628b5199a9ebf2d8dab94 | |
| parent | 15bcde049f2044769a3df1fc6fc7c72aaddf80e0 (diff) | |
| download | emacs-5605893d03d128a088eca3ea36af392bf7d111eb.tar.gz emacs-5605893d03d128a088eca3ea36af392bf7d111eb.zip | |
(comment-search-forward): Discard comment starters before point.
| -rw-r--r-- | lisp/newcomment.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 7fce0f7bde8..b0a166465fa 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el | |||
| @@ -391,7 +391,9 @@ and raises an error or returns nil if NOERROR is non-nil." | |||
| 391 | pt (or limit (point-max)) nil nil | 391 | pt (or limit (point-max)) nil nil |
| 392 | (list nil nil nil (nth 3 s) nil nil nil nil) | 392 | (list nil nil nil (nth 3 s) nil nil nil nil) |
| 393 | t))) | 393 | t))) |
| 394 | (if (not (and (nth 8 s) (not (nth 3 s)))) | 394 | (if (or (not (and (nth 8 s) (not (nth 3 s)))) |
| 395 | ;; Make sure the comment starts after PT. | ||
| 396 | (< (nth 8 s) pt)) | ||
| 395 | (unless noerror (error "No comment")) | 397 | (unless noerror (error "No comment")) |
| 396 | ;; We found the comment. | 398 | ;; We found the comment. |
| 397 | (let ((pos (point)) | 399 | (let ((pos (point)) |