Subject: Re: bug#14376: 24.3; comment-search-forward in SQL-mode raises an error

From: Stefan Monnier <[email-masked]>
Date: Fri, 10 May 2013 16:00:13 -0400

>>> * M-x sql-mode RET
>>> * M-<
>>> * M-: (comment-search-forward (point-max) t) RET
>> You failed to call comment-normalize-vars before calling
>> comment-search-forward.
> Shouldn't comment-search-forward do this by themselves?

No.

> Can't see it's docu mentioning such a need.

;; Prior to calling any `comment-*' function, you should ensure that
;; `comment-normalize-vars' is first called to set up the appropriate
;; variables; except for the `comment-*' commands, which call
;; `comment-normalize-vars' automatically as a subroutine.

        Stefan