[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bluetooth 3365413 33/57: corrects the major mode check
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bluetooth 3365413 33/57: corrects the major mode check in `list-bluetooth-devices' |
Date: |
Thu, 7 Nov 2019 23:28:54 -0500 (EST) |
branch: externals/bluetooth
commit 33654137458cdafc6560da2ecb00748f98f54357
Author: Raffael Stocker <address@hidden>
Commit: Raffael Stocker <address@hidden>
corrects the major mode check in `list-bluetooth-devices'
---
bluetooth.el | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/bluetooth.el b/bluetooth.el
index 2b77d25..f341a88 100644
--- a/bluetooth.el
+++ b/bluetooth.el
@@ -400,17 +400,16 @@ This function only uses the first adapter reported by
Bluez."
(interactive)
;; make sure D-Bus is (made) available
(dbus-ping bluetooth-bluez-bus bluetooth--service bluetooth--timeout)
- (let ((buffer-exists (get-buffer bluetooth-buffer-name)))
- (with-current-buffer (switch-to-buffer bluetooth-buffer-name)
- (unless buffer-exists
- (erase-buffer)
- (bluetooth-mode)
- (bluetooth--register-agent)
- (add-hook 'kill-buffer-hook #'bluetooth--cleanup nil t)
- (make-local-variable 'mode-line-misc-info)
- (cl-pushnew bluetooth--mode-info mode-line-misc-info)
- (setq imenu-create-index-function #'bluetooth--create-imenu-index))
- (tabulated-list-print t))))
+ (with-current-buffer (switch-to-buffer bluetooth-buffer-name)
+ (unless (eq major-mode 'bluetooth-mode)
+ (erase-buffer)
+ (bluetooth-mode)
+ (bluetooth--register-agent)
+ (add-hook 'kill-buffer-hook #'bluetooth--cleanup nil t)
+ (make-local-variable 'mode-line-misc-info)
+ (cl-pushnew bluetooth--mode-info mode-line-misc-info)
+ (setq imenu-create-index-function #'bluetooth--create-imenu-index))
+ (tabulated-list-print t)))
;;; Bluetooth pairing agent code
- [elpa] externals/bluetooth 00497ca 03/57: adds bluetooth.el and .gitignore, (continued)
- [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
- [elpa] externals/bluetooth f33cb12 02/57: Add LICENSE, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth ee4e582 30/57: fixes compiler warnings about unused parameters, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 3365413 33/57: corrects the major mode check in `list-bluetooth-devices',
Stefan Monnier <=
- [elpa] externals/bluetooth b47bddc 36/57: switches device-info buffer to special mode, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 42a9487 35/57: moves `hl-line-mode' to end of init so hl is shown at startup, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 325febd 16/57: adds Imenu integration to Readme feature list, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth f0e5047 18/57: removes unnecessary quotes before lambdas and corrects indentation, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 738347b 19/57: adds TAGS to .gitignore, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 28e9eb2 21/57: wraps @body in progn in bluetooth--maybe-cancel-reject, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 4133a10 13/57: makes mode idempotent, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 3c25a8c 23/57: adds basic service class UUID parsing, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 5219f05 31/57: fixes a compile error and adds customization, Stefan Monnier, 2019/11/07
- [elpa] externals/bluetooth 0108cbd 32/57: uses `read-from-minibuffer' instead of `read-passwd', Stefan Monnier, 2019/11/07