From 52441368d6fec82d39b657899bda401b7b854176 Mon Sep 17 00:00:00 2001
From: Eli Zaretskii <eliz@gnu.org>
Date: Wed, 15 Oct 2008 15:00:53 +0000
Subject: [PATCH] (List Motion): beginning-of-defun-function can now accept an
 argument.

---
 doc/lispref/ChangeLog      | 3 +++
 doc/lispref/positions.texi | 5 ++++-
 etc/NEWS                   | 1 +
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index a0ffb90ffba..6a264625112 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,5 +1,8 @@
 2008-10-15  Eli Zaretskii  <eliz@gnu.org>
 
+	* positions.texi (List Motion): beginning-of-defun-function can
+	now accept an argument.
+
 	* text.texi (Low-Level Kill Ring): interprogram-paste-function can
 	now return a list of strings.
 
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi
index 2729b66e746..452d6e4ca3c 100644
--- a/doc/lispref/positions.texi
+++ b/doc/lispref/positions.texi
@@ -737,7 +737,10 @@ The default is @code{t}.
 @defvar beginning-of-defun-function
 If non-@code{nil}, this variable holds a function for finding the
 beginning of a defun.  The function @code{beginning-of-defun}
-calls this function instead of using its normal method.
+calls this function instead of using its normal method, passing it its
+optional argument.  If the argument is non-@code{nil}, the function
+should move back by that many functions, like
+@code{beginning-of-defun} does.
 @end defvar
 
 @defvar end-of-defun-function
diff --git a/etc/NEWS b/etc/NEWS
index 151f9a096c7..f4c401b43c9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1148,6 +1148,7 @@ like this:
 +++
 ** clone-indirect-buffer now runs the clone-indirect-buffer-hook.
 
++++
 ** `beginning-of-defun-function' now takes one argument, the count
 given to `beginning-of-defun'.
 
-- 
2.39.5