]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't obsolete the _command_ replace-buffer-contents
authorPo Lu <luangruo@yahoo.com>
Sun, 30 Mar 2025 02:24:45 +0000 (10:24 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Mar 2025 08:54:30 +0000 (10:54 +0200)
* lisp/subr.el (replace-buffer-contents): Don't obsolete
function.  Its purpose is to serve as a command and such
obsoletion was unnecessary to begin with.

(cherry picked from commit 468778f390fa521773634094845749ab766fdcfd)

lisp/subr.el

index f02685460b1992b13858728134b781ee103f4371..ea9b09ca3cda727972e8833b1beed772c19bb375 100644 (file)
@@ -4360,7 +4360,6 @@ Interactively, prompt for SOURCE.
 The replacement is performed using `replace-region-contents'
 which also describes the MAX-SECS and MAX-COSTS arguments and the
 return value."
-  (declare (obsolete replace-region-contents "31.1"))
   (interactive "bSource buffer: ")
   (replace-region-contents (point-min) (point-max) (get-buffer source)
                            max-secs max-costs))