diff options
| author | Stefan Monnier | 2005-11-20 18:09:09 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-11-20 18:09:09 +0000 |
| commit | 3cc4b07630a868e42c3ca30aec47e0654989a978 (patch) | |
| tree | 0f2124ba556d1439182e83e2729eee3689a2c348 | |
| parent | 1c4b7278d6d3c405e06eacb735d588112bc463d8 (diff) | |
| download | emacs-3cc4b07630a868e42c3ca30aec47e0654989a978.tar.gz emacs-3cc4b07630a868e42c3ca30aec47e0654989a978.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/newcomment.el | 29 |
2 files changed, 21 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 06406e15f00..c5bbf08564f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-11-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * simple.el (blink-matching-open): | ||
| 4 | * paren.el (show-paren-function): Allow new paren-class info. | ||
| 5 | |||
| 1 | 2005-11-20 Chong Yidong <cyd@stupidchicken.com> | 6 | 2005-11-20 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * faces.el: Revert 2005-11-17 change. :ignore-defface is now | 8 | * faces.el: Revert 2005-11-17 change. :ignore-defface is now |
diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 938cd5fe141..7716a704359 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el | |||
| @@ -478,19 +478,22 @@ Point is assumed to be just at the end of a comment." | |||
| 478 | (if (bolp) | 478 | (if (bolp) |
| 479 | ;; comment-end = "" | 479 | ;; comment-end = "" |
| 480 | (progn (backward-char) (skip-syntax-backward " ")) | 480 | (progn (backward-char) (skip-syntax-backward " ")) |
| 481 | (let ((end (point))) | 481 | (cond |
| 482 | (beginning-of-line) | 482 | ((save-restriction |
| 483 | (save-restriction | 483 | (beginning-of-line) |
| 484 | (narrow-to-region (point) end) | 484 | (narrow-to-region (point) end) |
| 485 | (if (re-search-forward (concat comment-end-skip "\\'") nil t) | 485 | (re-search-forward (concat comment-end-skip "\\'") nil t)) |
| 486 | (goto-char (match-beginning 0)) | 486 | (goto-char (match-beginning 0))) |
| 487 | ;; comment-end-skip not found probably because it was not set right. | 487 | ;; comment-end-skip not found. Maybe we're at EOB which implicitly |
| 488 | ;; Since \\s> should catch the single-char case, we'll blindly | 488 | ;; closes the comment. |
| 489 | ;; assume we're at the end of a two-char comment-end. | 489 | ((eobp) (skip-syntax-backward " ")) |
| 490 | (goto-char (point-max)) | 490 | (t |
| 491 | (backward-char 2) | 491 | ;; else comment-end-skip was not found probably because it was not |
| 492 | (skip-chars-backward (string (char-after))) | 492 | ;; set right. Since \\s> should catch the single-char case, we'll |
| 493 | (skip-syntax-backward " ")))))) | 493 | ;; blindly assume we're at the end of a two-char comment-end. |
| 494 | (backward-char 2) | ||
| 495 | (skip-chars-backward (string (char-after))) | ||
| 496 | (skip-syntax-backward " "))))) | ||
| 494 | 497 | ||
| 495 | ;;;; | 498 | ;;;; |
| 496 | ;;;; Commands | 499 | ;;;; Commands |