* lisp/erc/erc-compat.el (erc-compat--window-no-other-p): New function.
* lisp/erc/erc-speedbar.el (erc-speedbar-toggle-nicknames-window-lock):
Use compat adapter for `window-no-other-p'.
(cherry picked from commit
6e80509099e27e237787186f4e8731bfdfb9b00d)
`(or ,v "")))))
spec)))))
+
+;;;; Misc 31.1
+
+(defun erc-compat--window-no-other-p (window)
+ ;; See bug#73706.
+ (if (fboundp 'window-no-other-p)
+ (window-no-other-p window)
+ (setq window (window-normalize-window window t))
+ (and (not ignore-window-parameters)
+ (window-parameter window 'no-other-window))))
+
+
(provide 'erc-compat)
;;; erc-compat.el ends here
(when-let ((window (get-buffer-window speedbar-buffer)))
(let ((val (cond ((natnump arg) t)
((integerp arg) nil)
- (t (not (window-no-other-p window))))))
+ (t (not (erc-compat--window-no-other-p window))))))
(with-current-buffer speedbar-buffer
(setq cursor-type (not val)))
(set-window-parameter window 'no-other-window val)