mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(comment-search-forward): Discard comment starters before point.
This commit is contained in:
parent
15bcde049f
commit
5605893d03
1 changed files with 3 additions and 1 deletions
|
|
@ -391,7 +391,9 @@ and raises an error or returns nil if NOERROR is non-nil."
|
|||
pt (or limit (point-max)) nil nil
|
||||
(list nil nil nil (nth 3 s) nil nil nil nil)
|
||||
t)))
|
||||
(if (not (and (nth 8 s) (not (nth 3 s))))
|
||||
(if (or (not (and (nth 8 s) (not (nth 3 s))))
|
||||
;; Make sure the comment starts after PT.
|
||||
(< (nth 8 s) pt))
|
||||
(unless noerror (error "No comment"))
|
||||
;; We found the comment.
|
||||
(let ((pos (point))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue