From: Eli Zaretskii Date: Fri, 11 Aug 2023 11:52:12 +0000 (+0300) Subject: ; Improve documentation of a recent addition X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44e941faa199b90ae9229841f699cc1a3441378f;p=emacs.git ; Improve documentation of a recent addition * lisp/simple.el (kill-ring-deindent-buffer-substring-function): Doc fix. --- diff --git a/lisp/simple.el b/lisp/simple.el index 604ab0541bf..561b1f7fbeb 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -11146,11 +11146,12 @@ seconds." ;; killed text to remove leading indentation. (defun kill-ring-deindent-buffer-substring-function (beg end delete) - "Save the text within BEG and END to the kill ring. -Maybe delete it if DELETE is non-nil. + "Save the text within BEG and END to kill-ring, decreasing indentation. +Delete the saved text if DELETE is non-nil. -Before saving the text, indent it leftwards by the number of -columns at BEG." +In the saved copy of the text, remove some of the indentation, such +that the buffer position at BEG will be at column zero when the text +is yanked." (let ((a beg) (b end)) (setq beg (min a b)