[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bluetooth 8d4b762 01/33: fixes indent declaration in ma
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bluetooth 8d4b762 01/33: fixes indent declaration in macros, generalises function name regexp |
Date: |
Sat, 19 Sep 2020 08:43:19 -0400 (EDT) |
branch: externals/bluetooth
commit 8d4b762c59b1cf4b00c2690f59770622de404c33
Author: Raffael Stocker <r.stocker@mnet-mail.de>
Commit: Raffael Stocker <r.stocker@mnet-mail.de>
fixes indent declaration in macros, generalises function name regexp
---
bluetooth.el | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/bluetooth.el b/bluetooth.el
index 0c47a44..835201e 100644
--- a/bluetooth.el
+++ b/bluetooth.el
@@ -130,45 +130,45 @@ The generated function name has the form
`bluetoothPREFIX-NAME'."
(save-match-data
(concat "bluetooth"
prefix
- (replace-regexp-in-string "[A-Z][a-z]+"
+ (replace-regexp-in-string "[[:upper:]][[:lower:]]+"
(lambda (x) (concat "-" (downcase x)))
name t)))))
(defmacro bluetooth-defun-method (method api docstring)
- (declare (doc-string 3) (indent 3))
+ (declare (doc-string 3) (indent 2))
(let ((name (bluetooth--function-name method)))
`(defun ,(intern name) () ,docstring
(interactive)
(bluetooth--dbus-method ,method ,api))))
(bluetooth-defun-method "Connect" :device
- "Connect to the Bluetooth device at point.")
+ "Connect to the Bluetooth device at point.")
(bluetooth-defun-method "Disconnect" :device
- "Disconnect Bluetooth device at point.")
+ "Disconnect Bluetooth device at point.")
(bluetooth-defun-method "StartDiscovery" :adapter
- "Start discovery mode.")
+ "Start discovery mode.")
(bluetooth-defun-method "StopDiscovery" :adapter
- "Stop discovery mode.")
+ "Stop discovery mode.")
(bluetooth-defun-method "Pair" :device
- "Pair with device at point.")
+ "Pair with device at point.")
(defmacro bluetooth-defun-toggle (property api docstring)
- (declare (doc-string 3) (indent 3))
+ (declare (doc-string 3) (indent 2))
(let ((name (bluetooth--function-name property "-toggle")))
`(defun ,(intern name) () ,docstring
(interactive)
(bluetooth--dbus-toggle ,property ,api))))
(bluetooth-defun-toggle "Blocked" :device
- "Mark Bluetooth device at point blocked.")
+ "Mark Bluetooth device at point blocked.")
(bluetooth-defun-toggle "Trusted" :device
- "Mark Bluetooth device at point trusted.")
+ "Mark Bluetooth device at point trusted.")
(bluetooth-defun-toggle "Powered" :adapter
- "Toggle power supply of adapter.")
+ "Toggle power supply of adapter.")
(bluetooth-defun-toggle "Discoverable" :adapter
- "Toggle discoverable mode.")
+ "Toggle discoverable mode.")
(bluetooth-defun-toggle "Pairable" :adapter
- "Toggle pairable mode.")
+ "Toggle pairable mode.")
(defun bluetooth-set-alias (name)
"Set alias of Bluetooth device at point."
- [elpa] externals/bluetooth updated (9ea7bad -> 28d16f6), Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 8d4b762 01/33: fixes indent declaration in macros, generalises function name regexp,
Stefan Monnier <=
- [elpa] externals/bluetooth 94d9827 05/33: displays MAC address if alias is unknown (pairing agent), Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 2f8f31c 08/33: adds an unload function, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth b60b76c 10/33: add Makefile and remove now unused bluetooth-test* files, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth e15f6d0 14/33: Revert "add local variable for flycheck mode", Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 1649156 06/33: removes incorrect mode-info clean-up, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth 1758202 18/33: correct indentation, Stefan Monnier, 2020/09/19
- [elpa] externals/bluetooth e95f30b 20/33: avoid using undocumented value of ‘push’, Stefan Monnier, 2020/09/19
- [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