]> code.delx.au - gnu-emacs/commitdiff
Doc fixes for menu-bar.el
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 29 Apr 2016 22:11:15 +0000 (00:11 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 1 May 2016 17:27:10 +0000 (19:27 +0200)
* lisp/menu-bar.el (clipboard-kill-ring-save): Describe the
REGION parameter (bug#18028).
(clipboard-kill-region): Ditto.

(cherry picked from commit 33d2c67bff0992ecbc0fe38556683242b9d1a4ae)

lisp/menu-bar.el

index 6281d7e5453f0aad6744ea875b1a9e27f948579c..6571a4b9d4f19cb7e8cdb1b9cff9889c922180d2 100644 (file)
     (yank)))
 
 (defun clipboard-kill-ring-save (beg end &optional region)
-  "Copy region to kill ring, and save in the GUI's clipboard."
+  "Copy region to kill ring, and save in the GUI's clipboard.
+If the optional argument REGION is non-nil, the function ignores
+BEG and END, and saves the current region instead."
   (interactive "r\np")
   (let ((gui-select-enable-clipboard t))
     (kill-ring-save beg end region)))
 
 (defun clipboard-kill-region (beg end &optional region)
-  "Kill the region, and save it in the GUI's clipboard."
+  "Kill the region, and save it in the GUI's clipboard.
+If the optional argument REGION is non-nil, the function ignores
+BEG and END, and kills the current region instead."
   (interactive "r\np")
   (let ((gui-select-enable-clipboard t))
     (kill-region beg end region)))