summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorEshel Yaron <me@eshelyaron.com>2024-08-23 17:15:32 +0200
committerEshel Yaron <me@eshelyaron.com>2024-08-23 17:18:32 +0200
commit44c26140b6e86f67f99d4ed9cc30e95f46708641 (patch)
tree7970c94f5be31e40434853764f09cbeffbe428c7 /lisp/emacs-lisp
parent25f537216682eecedf3905c4e005f02be007ed9c (diff)
downloademacs-44c26140b6e86f67f99d4ed9cc30e95f46708641.tar.gz
emacs-44c26140b6e86f67f99d4ed9cc30e95f46708641.tar.bz2
emacs-44c26140b6e86f67f99d4ed9cc30e95f46708641.zip
; Fix infloop in checkdoc-next-docstring
* lisp/emacs-lisp/checkdoc.el (checkdoc-next-docstring): Use 'beginning-of-defun-raw' instead of 'beginning-of-defun', as the latter always moves back to beginning of line and thus is not guaranteed to advance point when 'open-paren-in-column-0-is-defun-start' is non-nil. (Bug#72759)
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/checkdoc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index fd25b0f981f..21d40c56e74 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -986,7 +986,7 @@ buffer and save warnings in a separate buffer."
Return nil if there are no more doc strings."
(let (found)
(while (and (not (setq found (checkdoc--next-docstring)))
- (beginning-of-defun -1)))
+ (beginning-of-defun-raw -1)))
found))
(defun checkdoc--next-docstring ()