From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#27717: other-window when there is no other window Date: Mon, 17 Jul 2017 07:31:58 +0800 Message-ID: <8760esot5d.fsf@jidanni.org> References: <87efthjxb2.fsf@jidanni.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500247992 10021 195.159.176.226 (16 Jul 2017 23:33:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Jul 2017 23:33:12 +0000 (UTC) Cc: 27717@debbugs.gnu.org To: Marcin Borkowski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 17 01:33:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWt29-0002EN-PX for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 01:33:06 +0200 Original-Received: from localhost ([::1]:47227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWt2F-0002SA-7J for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jul 2017 19:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWt29-0002S1-Sv for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 19:33:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWt26-0000O3-PA for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 19:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40170) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWt26-0000Ny-Gb for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 19:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWt25-0000AX-UB for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 19:33:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87efthjxb2.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jul 2017 23:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27717-submit@debbugs.gnu.org id=B27717.1500247924585 (code B ref 27717); Sun, 16 Jul 2017 23:33:01 +0000 Original-Received: (at 27717) by debbugs.gnu.org; 16 Jul 2017 23:32:04 +0000 Original-Received: from localhost ([127.0.0.1]:42846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWt1A-00009N-5o for submit@debbugs.gnu.org; Sun, 16 Jul 2017 19:32:04 -0400 Original-Received: from homie.mail.dreamhost.com ([208.97.132.208]:38075 helo=homiemail-a8.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWt19-00009E-5c for 27717@debbugs.gnu.org; Sun, 16 Jul 2017 19:32:03 -0400 Original-Received: from homiemail-a8.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a8.g.dreamhost.com (Postfix) with ESMTP id 0E5C05F2067; Sun, 16 Jul 2017 16:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=6K1vy8VEv+dW82bGIELON+A2mXs=; b=jpBOu/H2xgmCs RyznKBwta+pWYyESvf8+TtyV3Wdj/AX8jZnx6x7GXjrKp93YDKwldBALUymIjztt A2FWoe3T1ZIojxN1LI1VpsvZtBDFYxelwURDfKa28QrMfFOjnjDbAd0z5AgKO7pR AMZkmzFDaA8UpwjgrxLjxjlm9iSnsI= Original-Received: from jidanni.org (114-41-9-172.dynamic-ip.hinet.net [114.41.9.172]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a8.g.dreamhost.com (Postfix) with ESMTPSA id B624E5F2065; Sun, 16 Jul 2017 16:32:01 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134643 Archived-At: >>>>> "MB" == Marcin Borkowski 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.