[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bluetooth a883d60 10/57: fixes spurious error on clean-
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bluetooth a883d60 10/57: fixes spurious error on clean-up |
Date: |
Thu, 7 Nov 2019 23:28:49 -0500 (EST) |
branch: externals/bluetooth
commit a883d60487d7a59254dfd37ac355e9baf23f6691
Author: Raffael Stocker <address@hidden>
Commit: Raffael Stocker <address@hidden>
fixes spurious error on clean-up
This is a work-around using `ignore-errors' around the dbus unregistering
functions.
---
bluetooth.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/bluetooth.el b/bluetooth.el
index 217c7e5..ccbcee1 100644
--- a/bluetooth.el
+++ b/bluetooth.el
@@ -349,9 +349,7 @@ This function only uses the first adapter reported by
Bluez."
(concat "[" info "] "))))
(defun bluetooth--cleanup ()
- "Clean up."
- (setq mode-line-misc-info (cl-remove bluetooth--mode-info
- mode-line-misc-info))
+ "Clean up when mode buffer is killed."
(bluetooth--unregister-agent))
;;; This command is the main entry point. It is meant to be called by
@@ -497,10 +495,11 @@ This function only uses the first adapter reported by
Bluez."
(defun bluetooth--unregister-agent ()
"Unregister the pairing agent."
- (mapc #'dbus-unregister-object bluetooth--method-objects)
- (dbus-call-method :system bluetooth--service bluetooth--root
- bluetooth--agent-mngr-intf "UnregisterAgent"
- :object-path bluetooth--own-path))
+ (ignore-errors
+ (dbus-call-method :system bluetooth--service bluetooth--root
+ bluetooth--agent-mngr-intf "UnregisterAgent"
+ :object-path bluetooth--own-path)
+ (mapc #'dbus-unregister-object bluetooth--method-objects)))
(provide 'bluetooth)
- [elpa] branch externals/bluetooth created (now 55304bb), Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 6cdc794 01/57: Initial commit, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth f16a702 07/57: fixes undefined function problem (first/second/third -> car etc.), Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 2fbe9e4 04/57: adds URL, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 9d1369a 05/57: adds Readme.org and removes Readme.md, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 5db9e29 08/57: adds bluetooth--release, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth a883d60 10/57: fixes spurious error on clean-up,
Stefan Monnier <=
- [elpa] externals/bluetooth e6ca72d 06/57: corrects docstrings and Readme.org, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth dd28c81 11/57: turns defvar into defconst where possible, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 00497ca 03/57: adds bluetooth.el and .gitignore, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 0cac7d9 09/57: makes status display in mode line buffer-local, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 58dd9f9 12/57: adds 'Maintainer' header and cleans up 'Package-Requires', Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 2560749 15/57: adds Imenu integration, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth cc33d79 14/57: corrects project name in LICENSE, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 3743458 17/57: corrects list redisplay when mode is restarted, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 8cac69d 26/57: checks list-id for nil to avoid errors at actions w/o list item, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 4a40ee6 24/57: adds GATT UUIDs and a rudimentary display function, Stefan Monnier, 2019/11/07