[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bluetooth 2f8f31c 08/33: adds an unload function
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bluetooth 2f8f31c 08/33: adds an unload function |
Date: |
Sat, 19 Sep 2020 08:43:20 -0400 (EDT) |
branch: externals/bluetooth
commit 2f8f31c1db714963b261c810e1fc2ac640e2f21a
Author: Raffael Stocker <r.stocker@mnet-mail.de>
Commit: Raffael Stocker <r.stocker@mnet-mail.de>
adds an unload function
---
bluetooth.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bluetooth.el b/bluetooth.el
index c0914b2..9661765 100644
--- a/bluetooth.el
+++ b/bluetooth.el
@@ -351,6 +351,12 @@ This function only uses the first adapter reported by
Bluez."
(mapc #'dbus-unregister-object bluetooth--method-objects)
(dbus-unregister-object bluetooth--adapter-signal)))
+(defun bluetooth-unload-function ()
+ "Clean up when the bluetooth feature is unloaded."
+ (when (buffer-live-p (get-buffer bluetooth-buffer-name))
+ (kill-buffer bluetooth-buffer-name))
+ nil)
+
(defun bluetooth-remove-device ()
"Remove Bluetooth device at point (unpaires device and host)."
(interactive)
- [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, 2020/09/19
- [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 <=
- [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
- [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