From: Stefan Monnier Date: Sat, 23 Sep 2017 21:06:23 +0000 (-0400) Subject: * lisp/newcomment.el (comment-search-backward): Obey the docstring (bug#28428) X-Git-Tag: emacs-27.0.90~6302 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=535db535a9168ae73740f50b57210eb127c37119;p=emacs.git * lisp/newcomment.el (comment-search-backward): Obey the docstring (bug#28428) --- diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 2a0f8a8ae50..2e644c3a99c 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -524,7 +524,7 @@ Ensure that `comment-normalize-vars' has been called before you use this." ;; comment-search-backward is only used to find the comment-column (in ;; comment-set-column) and to find the comment-start string (via ;; comment-beginning) in indent-new-comment-line, it should be harmless. - (if (not (re-search-backward comment-start-skip limit t)) + (if (not (re-search-backward comment-start-skip limit 'move)) (unless noerror (error "No comment")) (beginning-of-line) (let* ((end (match-end 0))