]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix wording of some doc strings in selection.el
authorEli Zaretskii <eliz@gnu.org>
Fri, 29 Jul 2022 06:31:26 +0000 (09:31 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 Jul 2022 06:31:26 +0000 (09:31 +0300)
* lisp/select.el (xselect-dnd-target-available-p)
(xselect-dt-netfile-available-p, xselect-uri-list-available-p):
Doc fixes.

lisp/select.el

index a2c396a7ffbc2106b2f43c501e46aba29b1238a5..019be9cb23b66b753501767d967e08bc025d0a60 100644 (file)
@@ -829,7 +829,8 @@ This function returns the string \"emacs\"."
                             (concat value [0]))))
 
 (defun xselect-uri-list-available-p (selection _type value)
-  "Return whether or not `text/uri-list' is a valid target for SELECTION.
+  "Return non-nil if `text/uri-list' is a valid target for SELECTION.
+Return nil otherwise.
 VALUE is the local selection value of SELECTION."
   (and (eq selection 'XdndSelection)
        (or (stringp value)
@@ -839,7 +840,8 @@ VALUE is the local selection value of SELECTION."
   "")
 
 (defun xselect-dt-netfile-available-p (selection _type value)
-  "Return whether or not `_DT_NETFILE' is a valid target for SELECTION.
+  "Return non-nil if `_DT_NETFILE' is a valid target for SELECTION.
+Return nil otherwise.
 VALUE is SELECTION's local selection value."
   (and (eq selection 'XdndSelection)
        (stringp value)
@@ -847,7 +849,8 @@ VALUE is SELECTION's local selection value."
        (not (file-remote-p value))))
 
 (defun xselect-dnd-target-available-p (selection _type _value)
-  "Return whether or not TYPE is a valid target for SELECTION.
+  "Return non-nil if TYPE is a valid target for SELECTION.
+Return nil otherwise.
 VALUE is SELECTION's local selection value."
   (eq selection 'XdndSelection))