bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: 積丹尼 Dan Jacobson
Subject: bug#27717: other-window when there is no other window
Date: Mon, 17 Jul 2017 07:31:58 +0800

>>>>> "MB" == Marcin Borkowski <mbork@mbork.pl> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]