Commit dc56b2ba authored by Martin Rudalics's avatar Martin Rudalics
Browse files

(c-mask-paragraph): Avoid invalid search

bound error in block comment branch.
parent e10fe1cb
2007-12-08 Martin Rudalics <rudalics@gmx.at>
* progmodes/cc-cmds.el (c-mask-paragraph): Avoid invalid search
bound error in block comment branch.
2007-12-08 David Kastrup <dak@gnu.org>
* textmodes/reftex.el (reftex-select-with-char):
......
......@@ -3864,7 +3864,12 @@ command to conveniently insert and align the necessary backslashes."
(save-excursion
(goto-char (cdr c-lit-limits))
(beginning-of-line)
(and (search-forward-regexp
;; The following conjunct was added to avoid an
;; "Invalid search bound (wrong side of point)"
;; error in the subsequent re-search. Maybe
;; another fix would be needed (2007-12-08).
(and (> (- (cdr c-lit-limits) 2) (point))
(search-forward-regexp
(concat "\\=[ \t]*\\(" c-current-comment-prefix "\\)")
(- (cdr c-lit-limits) 2) t)
(not (search-forward-regexp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment