[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 33d2c67 2/2: Doc fixes for menu-bar.el
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 33d2c67 2/2: Doc fixes for menu-bar.el |
Date: |
Fri, 29 Apr 2016 22:17:19 +0000 |
branch: master
commit 33d2c67bff0992ecbc0fe38556683242b9d1a4ae
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Doc fixes for menu-bar.el
* lisp/menu-bar.el (clipboard-kill-ring-save): Describe the
REGION parameter (bug#18028).
(clipboard-kill-region): Ditto.
---
lisp/menu-bar.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 82d8fad..933e2d2 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -541,7 +541,9 @@
(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)
(interprogram-cut-function (or interprogram-cut-function
@@ -549,7 +551,9 @@
(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)
(interprogram-cut-function (or interprogram-cut-function