diff options
| author | Martin Rudalics | 2007-12-08 09:55:50 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2007-12-08 09:55:50 +0000 |
| commit | dc56b2ba139f0052c032ff7628ad40c83621740a (patch) | |
| tree | 5fa03a63ccaa0912999ec9cc745d06f5c912f8d1 | |
| parent | e10fe1cbe2436a049fd8744e089432a58efbcf21 (diff) | |
| download | emacs-dc56b2ba139f0052c032ff7628ad40c83621740a.tar.gz emacs-dc56b2ba139f0052c032ff7628ad40c83621740a.zip | |
(c-mask-paragraph): Avoid invalid search
bound error in block comment branch.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-cmds.el | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 30be1ca0886..7608273c9bf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-12-08 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * progmodes/cc-cmds.el (c-mask-paragraph): Avoid invalid search | ||
| 4 | bound error in block comment branch. | ||
| 5 | |||
| 1 | 2007-12-08 David Kastrup <dak@gnu.org> | 6 | 2007-12-08 David Kastrup <dak@gnu.org> |
| 2 | 7 | ||
| 3 | * textmodes/reftex.el (reftex-select-with-char): | 8 | * textmodes/reftex.el (reftex-select-with-char): |
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index db052c4b8f5..06c0946290b 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el | |||
| @@ -3864,7 +3864,12 @@ command to conveniently insert and align the necessary backslashes." | |||
| 3864 | (save-excursion | 3864 | (save-excursion |
| 3865 | (goto-char (cdr c-lit-limits)) | 3865 | (goto-char (cdr c-lit-limits)) |
| 3866 | (beginning-of-line) | 3866 | (beginning-of-line) |
| 3867 | (and (search-forward-regexp | 3867 | ;; The following conjunct was added to avoid an |
| 3868 | ;; "Invalid search bound (wrong side of point)" | ||
| 3869 | ;; error in the subsequent re-search. Maybe | ||
| 3870 | ;; another fix would be needed (2007-12-08). | ||
| 3871 | (and (> (- (cdr c-lit-limits) 2) (point)) | ||
| 3872 | (search-forward-regexp | ||
| 3868 | (concat "\\=[ \t]*\\(" c-current-comment-prefix "\\)") | 3873 | (concat "\\=[ \t]*\\(" c-current-comment-prefix "\\)") |
| 3869 | (- (cdr c-lit-limits) 2) t) | 3874 | (- (cdr c-lit-limits) 2) t) |
| 3870 | (not (search-forward-regexp | 3875 | (not (search-forward-regexp |