Subject: Re: bug#27717: other-window when there is no other window

From: 積丹尼 Dan Jacobson <[email-masked]>
Date: Mon, 17 Jul 2017 07:31:58 +0800

>>>>> "MB" == Marcin Borkowski <[email-masked]> writes:

MB> How about this

MB> http://mbork.pl/2017-02-26_other-window-or-switch-buffer

Something's wrong.

I tried to modify this from your blog post,

(defun other-window-or-switch-buffer ()
  "Call `other-window' if more than one window is visible, switch
to next buffer otherwise."
  (interactive)
  (if (one-window-p)
	  (switch-to-buffer nil)
	(other-window 1)))
(global-set-key "\C-xb" #'other-window-or-switch-buffer)

but there is something wrong with the ASCII or something.