[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bluetooth 580ca56b69 56/93: update doc-strings in bluet
From: |
ELPA Syncer |
Subject: |
[elpa] externals/bluetooth 580ca56b69 56/93: update doc-strings in bluetooth.el |
Date: |
Sun, 27 Oct 2024 06:57:40 -0400 (EDT) |
branch: externals/bluetooth
commit 580ca56b69c678d8b19024fef3bb5c9d971b2b6b
Author: Raffael Stocker <r.stocker@mnet-mail.de>
Commit: Raffael Stocker <r.stocker@mnet-mail.de>
update doc-strings in bluetooth.el
---
bluetooth.el | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/bluetooth.el b/bluetooth.el
index ff7a0cc846..437c70b7d5 100644
--- a/bluetooth.el
+++ b/bluetooth.el
@@ -77,10 +77,10 @@
;;;; internal constants and variables
(defconst bluetooth-buffer-name "*Bluetooth*"
- "Name of the buffer in which to list bluetooth devices.")
+ "Name of the buffer in which to list Bluetooth devices.")
(defconst bluetooth-info-buffer-name "*Bluetooth info*"
- "Name of the bluetooth info buffer.")
+ "Name of the Bluetooth info buffer.")
(defconst bluetooth--mode-name "Bluetooth" "Pretty print mode name.")
@@ -106,6 +106,7 @@ of a property."
(bluetooth-property-active-text property)
(bluetooth-property-inactive-text property)))
+
(defvar bluetooth--mode-state `(("Powered" . ,(make-bluetooth-property
:inactive-text "off"))
("Discoverable" . ,(make-bluetooth-property
@@ -132,7 +133,7 @@ property and state.")
(defvar bluetooth--adapter-signal nil "D-Bus adapter signal object.")
(defvar bluetooth--update-timer nil
- "The bluetooth device table update timer.")
+ "The Bluetooth device table update timer.")
;;;; internal functions
@@ -140,7 +141,7 @@ property and state.")
(defconst bluetooth--list-format
[("Alias" 24 t) ("Paired" 8 t) ("Connected" 11 t) ("Address" 18 t)
("Blocked" 9 t) ("Trusted" 9 t)]
- "The list view format for bluetooth mode.
+ "The list view format for Bluetooth mode.
NOTE: the strings MUST correspond to Bluez device properties
as they are used to gather the information from Bluez.")
@@ -216,7 +217,7 @@ This function only uses the first adapter reported by
Bluez."
;; TODO test!
(defun bluetooth-unload-function ()
- "Clean up when the bluetooth feature is unloaded."
+ "Clean up when the Bluetooth feature is unloaded."
(bluetooth-shutdown)
(when (buffer-live-p (get-buffer bluetooth-buffer-name))
(bluetooth-shutdown)
@@ -227,10 +228,10 @@ This function only uses the first adapter reported by
Bluez."
(unless bluetooth--initialized
(user-error "Bluetooth is not initialized. Try
‘bluetooth-list-devices’.")))
-;; This function is called from Emacs's mode-line update code
-;; and must not contain any calls to D-Bus functions.
(defun bluetooth--mode-info ()
"Update the mode info display."
+ ;; This function is called from Emacs's mode-line update code
+ ;; and must not contain any calls to D-Bus functions.
(let ((info (mapconcat #'identity
(--keep (bluetooth-property-text (cl-rest it))
bluetooth--mode-state)
@@ -250,7 +251,6 @@ update the status display accordingly."
data)
(force-mode-line-update)))
-;; TODO remove this and replace by general path construction function
(defun bluetooth--make-path (api)
"Return the path of the currently selected device."
(cond ((eq :device api)
@@ -321,7 +321,7 @@ profiles."
(command-execute #'bluetooth-disconnect)))
(defmacro bluetooth-defun-method (method api docstring &rest body)
- "Make a function calling a bluetooth METHOD using API.
+ "Make a function calling a Bluetooth METHOD using API.
The function will have DOCSTRING as its documentation and is
implemented by BODY."
(declare (doc-string 3) (indent 2))
@@ -567,7 +567,7 @@ Calling this function will unpair device and host."
(bluetooth-uuid-interpret uuids))))
(defun bluetooth--ins-rf-info (props)
- "Insert rf information from properties alist PROPS."
+ "Insert RF information from properties alist PROPS."
(let* ((rssi (cl-rest (assoc "RSSI" props)))
(tx-power (cl-rest (assoc "TxPower" props)))
(loss (when (and rssi tx-power) (- tx-power rssi))))
@@ -608,7 +608,7 @@ Calling this function will unpair device and host."
(special-mode)))))
(defun bluetooth-show-adapter-info ()
- "Show detailed information on the (first) bluetooth adapter."
+ "Show detailed information on the (first) Bluetooth adapter."
(interactive)
(bluetooth--barf-if-uninitialized)
(let* ((adapter (cl-first (bluetooth-lib-query-adapters)))
@@ -631,7 +631,7 @@ Calling this function will unpair device and host."
;;;###autoload
(defun bluetooth-init ()
- "Initialize bluetooth mode."
+ "Initialize Bluetooth mode."
;; make sure D-Bus is (made) available
(unless (dbus-ping bluetooth-bluez-bus bluetooth-service bluetooth-timeout)
(error "The bluetooth service “%s” is not available" bluetooth-service))
@@ -686,7 +686,7 @@ scanning the bus, displaying device info etc."
(defun bluetooth-shutdown (&optional arg)
"Shutdown Bluetooth mode.
This command will unregister any agents and plugins and free
-D-Bus ressources. If called interactively, it will ask for
+D-Bus resources. If called interactively, it will ask for
confirmation before shutting down."
(interactive "p")
(bluetooth--barf-if-uninitialized)
- [elpa] externals/bluetooth a840d63d5a 15/93: use named functions instead of lambdas for hooks, (continued)
- [elpa] externals/bluetooth a840d63d5a 15/93: use named functions instead of lambdas for hooks, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 53e5e3c439 21/93: improve bluetooth-device-map, adding a filter function, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth c28b1af6b4 19/93: remove todo comments, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 284651b419 23/93: add function to query a single property, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth c2f3a9e363 25/93: remove ignore-errors in bluetooth--handle-prop-change, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 59a1c9a8e7 34/93: add more interfaces, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 7ae3f16e8c 37/93: choose better function name, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth f980b6f74e 39/93: implement more functionality in bluetooth-battery, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth c12344d4ec 47/93: use correct :test in call to cl-set-difference, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 9e214b4269 03/93: reorganize source code into multiple files, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 580ca56b69 56/93: update doc-strings in bluetooth.el,
ELPA Syncer <=
- [elpa] externals/bluetooth a44a92e808 58/93: add device info follow mode, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 329cc1d735 14/93: move pairing agent path to bluetooth-pa and simplify dbus calls, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 1c66aba36f 16/93: add functions to find Bluez objects matching a key (and value), ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth fdea8d8914 28/93: add basic plugin support, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 5ad9d3df0c 36/93: add more functions to the bluetooth-plugin API, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth e410e22c6a 42/93: clean up the initialization and shutdown code, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth 343963fe2b 44/93: simplify the plugin device add/update function, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth dbef1180ae 46/93: clean up device signal handler, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth c5d4e316a6 54/93: correct function argument check, ELPA Syncer, 2024/10/27
- [elpa] externals/bluetooth e11e719a7a 61/93: show "Bonded" property in device info, ELPA Syncer, 2024/10/27