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 16:18:52 +0800 Message-ID: <87zic379xv.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 1500279629 20208 195.159.176.226 (17 Jul 2017 08:20:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Jul 2017 08:20:29 +0000 (UTC) Cc: Marcin Borkowski , 27717@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 17 10:20:21 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 1dX1GI-0004SC-Nq for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 10:20:15 +0200 Original-Received: from localhost ([::1]:48699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX1GO-0003f5-6f for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 04:20:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX1GD-0003aJ-16 for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 04:20:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX1G7-0005lT-1X for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 04:20:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40492) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dX1G6-0005lH-Of for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 04:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dX1G6-0003Z1-JQ for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 04:20:02 -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: Mon, 17 Jul 2017 08:20:02 +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.150027954213590 (code B ref 27717); Mon, 17 Jul 2017 08:20:02 +0000 Original-Received: (at 27717) by debbugs.gnu.org; 17 Jul 2017 08:19:02 +0000 Original-Received: from localhost ([127.0.0.1]:43165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX1F8-0003X8-CM for submit@debbugs.gnu.org; Mon, 17 Jul 2017 04:19:02 -0400 Original-Received: from homie.mail.dreamhost.com ([208.97.132.208]:49421 helo=homiemail-a5.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX1F6-0003Wi-27 for 27717@debbugs.gnu.org; Mon, 17 Jul 2017 04:19:00 -0400 Original-Received: from homiemail-a5.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a5.g.dreamhost.com (Postfix) with ESMTP id C932C704071; Mon, 17 Jul 2017 01:18:56 -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=MauHWWChnAavCWtxE/ij/CXq+Dg=; b=HHNBPZBakkXYf DnaJjoYdGk0rTzNtiK4Xz1zjJNis8ZqMvOddLzz3u7iFOzaj7JPQrvOhLtBf+AFO SQhk4SGQe8yncSM1pqn8M29aaAqbM99pZDGONeaXho4eGSu5i+jv3Zx0reXg90UN LSs5Mv8zkkEtx8UEruPu2jCz78MW+k= Original-Received: from jidanni.org (114-41-35-208.dynamic-ip.hinet.net [114.41.35.208]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a5.g.dreamhost.com (Postfix) with ESMTPSA id 5086D70406F; Mon, 17 Jul 2017 01:18:56 -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:134654 Archived-At: OK. I think this would be a great redefinition of C-x o: (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 (kbd "C-x o") 'other-window-or-switch-buffer) (I don't use frames. So don't know much about that part.)