From 75b68c322716068466ea7b42bc5ff9aea77e3311 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Sat, 19 Jun 2021 14:25:22 +0200 Subject: [PATCH] Improve to selsel doc strings * lisp/delsel.el (delete-active-region): Document interactive behavior. * lisp/delsel.el (delete-selection-repeat-replace-region): Use "\\[universal-argument]" instead of literal "C-u" in docstring. --- lisp/delsel.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/delsel.el b/lisp/delsel.el index 96a9dcc0c79..3c99dd2344c 100644 --- a/lisp/delsel.el +++ b/lisp/delsel.el @@ -87,7 +87,8 @@ information on adapting behavior of commands in Delete Selection mode." ;;;###autoload (defun delete-active-region (&optional killp) "Delete the active region. -If KILLP in not-nil, the active region is killed instead of deleted." +If KILLP is non-nil, or if called interactively with a prefix argument, +the active region is killed instead of deleted." (interactive "P") (cond (killp @@ -107,7 +108,7 @@ If KILLP in not-nil, the active region is killed instead of deleted." "Repeat replacing text of highlighted region with typed text. Search for the next stretch of text identical to the region last replaced by typing text over it and replaces it with the same stretch of text. -With ARG, repeat that many times. `C-u' means until end of buffer." +With ARG, repeat that many times. `\\[universal-argument]' means until end of buffer." (interactive "P") (let ((old-text (and delete-selection-save-to-register (get-register delete-selection-save-to-register))) -- 2.39.5