unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: 27717@debbugs.gnu.org
Subject: bug#27717: other-window when there is no other window
Date: Mon, 17 Jul 2017 07:31:58 +0800	[thread overview]
Message-ID: <8760esot5d.fsf@jidanni.org> (raw)
In-Reply-To: <87efthjxb2.fsf@jidanni.org>

>>>>> "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.





  parent reply	other threads:[~2017-07-16 23:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-15 19:48 bug#27717: other-window when there is no other window 積丹尼 Dan Jacobson
2017-07-16  8:28 ` martin rudalics
2017-07-16 15:13 ` 積丹尼 Dan Jacobson
2017-07-16 16:04   ` Eli Zaretskii
2017-07-16 16:11 ` 積丹尼 Dan Jacobson
2017-07-16 19:13 ` Marcin Borkowski
2017-07-16 23:31 ` 積丹尼 Dan Jacobson [this message]
2017-07-17  7:03   ` martin rudalics
2017-07-17  8:18 ` 積丹尼 Dan Jacobson
2019-08-17 23:37 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760esot5d.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=27717@debbugs.gnu.org \
    --cc=mbork@mbork.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).