* lisp/window.el (other-window): Issue a message when the user
types `C-x o' and there's no other window to select (bug#10999).
always effectively nil."
(interactive "p")
(let* ((window (selected-window))
+ (original-window window)
(function (and (not ignore-window-parameters)
(window-parameter window 'other-window)))
old-window old-count)
(t
(setq count (1+ count)))))
+ (when (and (eq window original-window)
+ (called-interactively-p 'interactive))
+ (message "No other window to select"))
+
(select-window window)
;; Always return nil.
nil))))