[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bluetooth 5d72618 17/33: add page breaks and section he
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bluetooth 5d72618 17/33: add page breaks and section headings |
Date: |
Sat, 19 Sep 2020 08:43:23 -0400 (EDT) |
branch: externals/bluetooth
commit 5d726184263679dfcbcb146b3d7c5b63e8e80f34
Author: Raffael Stocker <r.stocker@mnet-mail.de>
Commit: Raffael Stocker <r.stocker@mnet-mail.de>
add page breaks and section headings
---
bluetooth.el | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/bluetooth.el b/bluetooth.el
index 400ca4d..5297729 100644
--- a/bluetooth.el
+++ b/bluetooth.el
@@ -47,6 +47,9 @@
(require 'rx)
(eval-when-compile (require 'subr-x))
+
+;;;; customization
+
(defgroup bluetooth nil
"Bluetooth device management."
:group 'comm)
@@ -69,6 +72,9 @@ This is usually `:system' if bluetoothd runs as a system
service, or
'((t . (:slant italic)))
"Face for device attribute names.")
+
+;;;; internal constants and variables
+
(defconst bluetooth-buffer-name "*Bluetooth*"
"Name of the buffer in which to list bluetooth devices.")
@@ -130,6 +136,9 @@ property and state.")
;; This variable holds the device information as obtained from D-Bus.
(defvar bluetooth--device-info nil "Device info obtained from Bluez.")
+
+;;;; command definitions
+
(eval-and-compile
(defun bluetooth--function-name (name &optional prefix)
"Make a function name out of NAME and PREFIX.
@@ -182,6 +191,9 @@ The generated function name has the form
`bluetoothPREFIX-NAME'."
(interactive "MAlias (empty to reset): ")
(bluetooth--dbus-set "Alias" name :device))
+
+;;;; keymap and menu
+
(defvar bluetooth-mode-map
(let ((map (make-sparse-keymap)))
(set-keymap-parent map tabulated-list-mode-map)
@@ -235,6 +247,9 @@ The generated function name has the form
`bluetoothPREFIX-NAME'."
map)
"The Bluetooth mode keymap.")
+
+;;;; internal functions
+
;; This function returns a list of bluetooth adapters and devices
;; in the form
;; (("hci0"
@@ -471,6 +486,8 @@ adapter reported by Bluez."
:arg-namespace
(alist-get :adapter
bluetooth--interfaces)))))
+
+;;;; mode entry command
;;;###autoload
(defun bluetooth-list-devices ()
@@ -493,6 +510,8 @@ scanning the bus, displaying device info etc."
(bluetooth--register-signal-handler))))
;;; Bluetooth pairing agent code
+
+;;;; Bluetooth pairing agent code
;; The release function is not needed at the moment, but needs
;; to be implemented for the agent API.
@@ -609,6 +628,8 @@ scanning the bus, displaying device info etc."
(alist-get :agent-manager bluetooth--interfaces)
"RegisterAgent"
:object-path bluetooth--own-path "KeyboardDisplay"))
+
+;;;; service and class UUID definitions
;; The following constants define the meaning of the Bluetooth
;; CLASS property, which is made up of a number of fields.
@@ -1015,6 +1036,9 @@ scanning the bus, displaying device info etc."
#xFFFE ("AirFuel Alliance" "Wireless Power Transfer Service")))
"Bluetooth standards development organizations UUIDS.")
+
+;;;; Bluetooth member UUIDs
+
(defconst bluetooth--member-uuid-alist
#s(hash-table
size 100 data
@@ -1398,6 +1422,9 @@ scanning the bus, displaying device info etc."
#xFD87 ("Google LLC")))
"Bluetooth manufacturer UUIDs.")
+
+;;;; service and class parsing code
+
(defconst bluetooth--uuid-alists
`((#xfff0 . ,bluetooth--sdo-uuid-alist)
(#xfd00 . ,bluetooth--member-uuid-alist)
@@ -1465,6 +1492,9 @@ scanning the bus, displaying device info etc."
"Get the minor field spec for FIELD using DATA as specification."
(symbol-value (cdr (alist-get field data))))
+
+;;;; Bluetooth company IDs
+
;; Very long list of manufacturer IDs.
;; Last updated: 05. Nov 2019
(defconst bluetooth--manufacturer-ids
@@ -3575,6 +3605,9 @@ scanning the bus, displaying device info etc."
#x0836 "Bitwards Oy"))
"Bluetooth manufacturer IDs.")
+
+;;;; device info display
+
(defun bluetooth-show-device-info ()
"Show detailed information on the device at point."
(interactive)
- [elpa] externals/bluetooth 24d3c4a 03/33: fixes column widths in list format so sorting arrows are visible, (continued)
- [elpa] externals/bluetooth 24d3c4a 03/33: fixes column widths in list format so sorting arrows are visible, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth f81cb13 04/33: removes unnecessary `save-match-data' invocations, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 6813a70 02/33: fixes comments to conform to Elisp conventions, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth fba1988 07/33: adds a simple compile/test setup script, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 53323b9 09/33: matches case sensitively in bluetooth--function-name, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 8f3dcaa 11/33: move some of the comments into docstrings, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth e86e01f 12/33: add local variable for flycheck mode, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth f107d6f 13/33: Add menu entries to bluetooth-mode-map, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth eb4b158 15/33: Merge commit 'f107d6f', Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth b12caf1 16/33: update author list, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 5d72618 17/33: add page breaks and section headings,
Stefan Monnier <=
- [elpa] externals/bluetooth 8e8b6d0 19/33: bump up the copyright year, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 943ddf3 21/33: Clean up the UUID and class descriptions, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 98afd71 22/33: add property and uuid functions, update info display, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 518ebdf 29/33: update company ids (bluetooth--manufacturer-ids), Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 2746c62 23/33: change connect and disconnect functions to handle single profiles, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 0ca89cf 24/33: clean up the connect and disconnect functions, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 7bb793f 26/33: remove unneeded hydra reference from Makefile, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 950cc77 27/33: add more menu entries, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth b5fc5c2 28/33: correct docstring in bluetooth-disconnect, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 28d16f6 33/33: set version number to 0.2, Stefan Monnier, 2020/09/19