Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
dc56b2ba
Commit
dc56b2ba
authored
Dec 08, 2007
by
Martin Rudalics
Browse files
(c-mask-paragraph): Avoid invalid search
bound error in block comment branch.
parent
e10fe1cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/cc-cmds.el
lisp/progmodes/cc-cmds.el
+6
-1
No files found.
lisp/ChangeLog
View file @
dc56b2ba
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>
2007-12-08 David Kastrup <dak@gnu.org>
* textmodes/reftex.el (reftex-select-with-char):
* textmodes/reftex.el (reftex-select-with-char):
...
...
lisp/progmodes/cc-cmds.el
View file @
dc56b2ba
...
@@ -3864,7 +3864,12 @@ command to conveniently insert and align the necessary backslashes."
...
@@ -3864,7 +3864,12 @@ command to conveniently insert and align the necessary backslashes."
(
save-excursion
(
save-excursion
(
goto-char
(
cdr
c-lit-limits
))
(
goto-char
(
cdr
c-lit-limits
))
(
beginning-of-line
)
(
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
"\\)"
)
(
concat
"\\=[ \t]*\\("
c-current-comment-prefix
"\\)"
)
(
-
(
cdr
c-lit-limits
)
2
)
t
)
(
-
(
cdr
c-lit-limits
)
2
)
t
)
(
not
(
search-forward-regexp
(
not
(
search-forward-regexp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment