From unknown Sat Aug 16 10:46:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27717 <27717@debbugs.gnu.org> To: bug#27717 <27717@debbugs.gnu.org> Subject: Status: other-window when there is no other window Reply-To: bug#27717 <27717@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:46:46 +0000 retitle 27717 other-window when there is no other window reassign 27717 emacs submitter 27717 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 27717 wishlist tag 27717 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 17:37:29 2017 Received: (at submit) by debbugs.gnu.org; 15 Jul 2017 21:37:30 +0000 Received: from localhost ([127.0.0.1]:40737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWUkj-0000Zf-Le for submit@debbugs.gnu.org; Sat, 15 Jul 2017 17:37:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWUkh-0000ZP-IG for submit@debbugs.gnu.org; Sat, 15 Jul 2017 17:37:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWUkb-0005Xx-Kr for submit@debbugs.gnu.org; Sat, 15 Jul 2017 17:37:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dWUkb-0005Xr-HU for submit@debbugs.gnu.org; Sat, 15 Jul 2017 17:37:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWUka-00021t-JM for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 17:37:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWUkV-0005S5-O1 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 17:37:20 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:56289 helo=homiemail-a14.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dWUkV-0005PM-GP for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 17:37:15 -0400 Received: from homiemail-a14.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTP id 14BCE392077 for ; Sat, 15 Jul 2017 14:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=ezg7E5lRq53SiAyVhxdBwUmb0xs=; b=c89fJL/mkAn2touk TF18gbaMRzoycWhAkbfO/zvaAy2x+1qNXIG+/2SMGevMBsnWT7T3uDaUN5nGnguP 8lvYdhONzk6A6Kh/In69nx26wpaVNmtVWa2GflmxsZNTU0E6spU6SWPGiBQ3FBac 6roZl9eDi2Gfn1Vlc2iRiMSP2Sg= Received: from jidanni.org (114-41-29-155.dynamic-ip.hinet.net [114.41.29.155]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTPSA id CE3B5392075 for ; Sat, 15 Jul 2017 14:37:12 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: other-window when there is no other window Date: Sun, 16 Jul 2017 03:48:49 +0800 Message-ID: <87efthjxb2.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) C-x o runs the command other-window. Alas, if there is no other window, it does nothing. It doesn't even print a message "no other window". BUG! Better yet in this case would be just switch to an other buffer (the same buffer that switch-to-buffer asks the user about, but without asking the user.) And only if there is also no other buffer, then print the message. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 04:28:42 2017 Received: (at 27717) by debbugs.gnu.org; 16 Jul 2017 08:28:42 +0000 Received: from localhost ([127.0.0.1]:40948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWeuw-0003rg-BJ for submit@debbugs.gnu.org; Sun, 16 Jul 2017 04:28:42 -0400 Received: from mout.gmx.net ([212.227.15.19]:55006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWeut-0003rQ-O0 for 27717@debbugs.gnu.org; Sun, 16 Jul 2017 04:28:40 -0400 Received: from [192.168.1.100] ([46.125.250.105]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MQiB3-1d4vqK3FPx-00U3US; Sun, 16 Jul 2017 10:28:29 +0200 Message-ID: <596B23A8.6080801@gmx.at> Date: Sun, 16 Jul 2017 10:28:24 +0200 From: martin rudalics MIME-Version: 1.0 To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= , 27717@debbugs.gnu.org Subject: Re: bug#27717: other-window when there is no other window References: <87efthjxb2.fsf@jidanni.org> In-Reply-To: <87efthjxb2.fsf@jidanni.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:hfqT8gJf1daZmAcExM9nBUAexe2uuVNP+ZyjWx/7h2ubiXDNehk KT0N9PFDLpy5IepO5fvt5Q2a1nPyYWoJsA+W+tT27YLVE2CVtQDmEbIeIB6TlJB4IrrwZwt P8LaR+pC18fkUf5sSizIWk7moRoKZepEhp8TrAqbfqME0wnjJ9/b1Z0BQkt5F0pvTNM5skT V1KfSzuEuIDMZChCfy3/A== X-UI-Out-Filterresults: notjunk:1;V01:K0:pZ7u9nVeiE0=:WGcF4gzXfVoHqLe1qDtTje f5hOQeirqyrjOFDCMziLKLBzwKLCn/K+yMAstNZVtLGl3g02ia0WBCYRm19wEYaqH4k4rFNb/ Jl5DslWREL8sF2slZJI1yq0EPHBIyTFZvloz80GIO+nDfkem8M9W6bsndsgkA0fF6EGwswXQi 07UiWeCMaz9axg5s42faC2Iy5n4l+uRA68n8mY9ieTrjWjaS5Yb4XWMUpxCJMIHj6YWClK1t5 j2HW0czElSmOFg5OqH8KHwYo3HbIunAExCJI0hOdMiY2xKcQNsDQJA1y5pk78E91a+vJ2MEa3 uLTmOCMfYFgE+Z6Ka1zRZyfz1zpG4tVerMtGQ4NXFRfV/mj4ca99DerprdYFdvb6ACfKL6LNi Zizo7EvGa/ZEPIFTMOgcUVMJI3LT3DsuL9S/49rMt6jPYlRpm0FgNL2pkKxVyFWSr8UBTRSY0 pgGpv8K7jbgLR8oD7VfECafR52w+KZXy61hCZaDXWL69aPbqZPsuIsyf/IRPLyOyrkoSCsq2Q plMwwdx70lsrXRX9eRMMiofJxhBEXkypkyjbhiVyliQh2HkASRCoXpjGVwLkNdcIYcAGozB7j PfD4+e9FmVUzfPXYlm4fIOPk0miR209dpfFg41P+N8t3dMksOHjugkKdT75hCUqtuU9Bo/HtN 1w0v7cIhpLkfN8eS29Z752Mz2cKYdoJUYsL2365EuTw/Begign/job9SHpBUOPp2mRtkC5TdL NPxFdIzpbZJArV0r9ZjZvFJapT+bjnAM1dDqzpoERF+Iq5P7kxVRA2dnagi3PVl1UJTBVPO0A 2YR9aaii5h98BgTutaV9ZziZqZK4kyt/RNMl1rmdap6NNngtmSvUJhAizJQgLtKH4NWP943 X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 27717 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) > C-x o runs the command other-window. > > Alas, if there is no other window, it does nothing. > > It doesn't even print a message "no other window". BUG! > > Better yet in this case would be just switch to an other buffer (the > same buffer that switch-to-buffer asks the user about, but without > asking the user.) > > And only if there is also no other buffer, then print the message. The documentation of =E2=80=98other-window=E2=80=99 contains the sentence= "COUNT zero means do not skip any window, so select the selected window." which clearly indicates that "doing nothing" is a valid action in this case. C-x 5 o behaves in a similar way. Admittedly, saying that =E2=80=98other-window=E2=80=99 does "Select anoth= er window in cyclic ordering of windows." is misleading. martin From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 11:13:40 2017 Received: (at 27717) by debbugs.gnu.org; 16 Jul 2017 15:13:40 +0000 Received: from localhost ([127.0.0.1]:42587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWlEp-0004yn-R2 for submit@debbugs.gnu.org; Sun, 16 Jul 2017 11:13:39 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:50378 helo=homiemail-a2.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWlEo-0004yf-OL for 27717@debbugs.gnu.org; Sun, 16 Jul 2017 11:13:39 -0400 Received: from homiemail-a2.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 08D31280063; Sun, 16 Jul 2017 08:13:37 -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: content-transfer-encoding; s=jidanni.org; bh=gMiD0fE2zZ7ztyHPDak ASUUH+Ek=; b=K11Te/uNt2PgxD8eUzcqSIVGLZum2gpoVaaxRLHVPSGdP+HmseR w+Wm3i5HcPP30jBLOvd8z6QYMz9/6XCtifijIPKgKrjsG1xBp0TEW9nKs1wRCqA7 MlnRMhay9QZI5jPP3UzWWtF81NanubpAUOMVGNz8ZxVwqulyX/BzbjAk= Received: from jidanni.org (114-41-39-166.dynamic-ip.hinet.net [114.41.39.166]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTPSA id C232D280062; Sun, 16 Jul 2017 08:13:36 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: martin rudalics Subject: Re: bug#27717: other-window when there is no other window References: <87efthjxb2.fsf@jidanni.org> Date: Sun, 16 Jul 2017 23:13:33 +0800 Message-ID: <871spgza76.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27717 Cc: 27717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) >>>>> "mr" =3D=3D martin rudalics writes: mr> The documentation of =E2=80=98other-window=E2=80=99 contains the sent= ence "COUNT zero mr> means do not skip any window, so select the selected window." which mr> clearly indicates that "doing nothing" is a valid action in this case= . "In an interactive call, COUNT is the numeric prefix argument." All I know is the user did C-x o, not C-u 0 C-x o. So I would hope the program would distinguish the two. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 12:04:31 2017 Received: (at 27717) by debbugs.gnu.org; 16 Jul 2017 16:04:31 +0000 Received: from localhost ([127.0.0.1]:42615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWm23-00068F-5z for submit@debbugs.gnu.org; Sun, 16 Jul 2017 12:04:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWm21-000682-AK for 27717@debbugs.gnu.org; Sun, 16 Jul 2017 12:04:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWm1s-00078z-5W for 27717@debbugs.gnu.org; Sun, 16 Jul 2017 12:04:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWm1s-00077u-2i; Sun, 16 Jul 2017 12:04:20 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3087 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dWm1r-0000Ax-20; Sun, 16 Jul 2017 12:04:20 -0400 Date: Sun, 16 Jul 2017 19:04:23 +0300 Message-Id: <838tjoe5bs.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson In-reply-to: <871spgza76.fsf@jidanni.org> Subject: Re: bug#27717: other-window when there is no other window References: <87efthjxb2.fsf@jidanni.org> <871spgza76.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27717 Cc: rudalics@gmx.at, 27717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: 積丹尼 Dan Jacobson > > Date: Sun, 16 Jul 2017 23:13:33 +0800 > Cc: 27717@debbugs.gnu.org > > "In an interactive call, COUNT is the numeric prefix argument." > > All I know is the user did C-x o, not C-u 0 C-x o. > > So I would hope the program would distinguish the two. If your ring has exactly one slot, then going to the next will end up right where you started. There's nothing odd about that, and no special reason to signal an error or output a message. You can instantly know what happened without any message. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 12:11:51 2017 Received: (at 27717) by debbugs.gnu.org; 16 Jul 2017 16:11:51 +0000 Received: from localhost ([127.0.0.1]:42627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWm98-0006IO-Iy for submit@debbugs.gnu.org; Sun, 16 Jul 2017 12:11:50 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:43422 helo=homiemail-a2.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWm96-0006IG-S0 for 27717@debbugs.gnu.org; Sun, 16 Jul 2017 12:11:49 -0400 Received: from homiemail-a2.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id DB96528006D; Sun, 16 Jul 2017 09:11:44 -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=1goCXV2zvvqRcRK9A+RE5Q1bBKQ=; b=XlSshQRoHFlnW pcOLahISGFdQTKU0Se1t1VoRLL6vluGzCf5wvrSnslV2wMf9pyYk/m7eoRd1LkWe e2lQRyufbQ2W8nJOGqI/m6+zqNRL75pO2nH6HNvJ5alZQCGdhaEfloVCUrGTMO52 hN9bb56sHrNfh8tjIpNV/WRTMG0++I= Received: from jidanni.org (114-41-39-166.dynamic-ip.hinet.net [114.41.39.166]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTPSA id 9E20F280069; Sun, 16 Jul 2017 09:11:44 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Eli Zaretskii Subject: Re: bug#27717: other-window when there is no other window References: <87efthjxb2.fsf@jidanni.org> Date: Mon, 17 Jul 2017 00:11:41 +0800 Message-ID: <87lgnoxsxu.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27717 Cc: rudalics@gmx.at, 27717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) >>>>> "EZ" == Eli Zaretskii writes: EZ> If your ring has exactly one slot, then going to the next will end up EZ> right where you started. There's nothing odd about that, and no EZ> special reason to signal an error or output a message. You can EZ> instantly know what happened without any message. OK then don't print a message. But I hope you will implement my ideas when the ring has more than one slot. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 15:13:54 2017 Received: (at 27717) by debbugs.gnu.org; 16 Jul 2017 19:13:54 +0000 Received: from localhost ([127.0.0.1]:42698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWozK-0005d8-4q for submit@debbugs.gnu.org; Sun, 16 Jul 2017 15:13:54 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:49217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWozI-0005cz-Cs for 27717@debbugs.gnu.org; Sun, 16 Jul 2017 15:13:52 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 8050AE65E7; Sun, 16 Jul 2017 21:13:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0inPgbg8VinL; Sun, 16 Jul 2017 21:13:46 +0200 (CEST) Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 277F9E6571; Sun, 16 Jul 2017 21:13:46 +0200 (CEST) References: <87efthjxb2.fsf@jidanni.org> User-agent: mu4e 0.9.19; emacs 26.0.50 From: Marcin Borkowski To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#27717: other-window when there is no other window In-reply-to: <87efthjxb2.fsf@jidanni.org> Date: Sun, 16 Jul 2017 21:13:44 +0200 Message-ID: <877ez8qjo7.fsf@jane> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27717 Cc: 27717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2017-07-15, at 21:48, 積丹尼 Dan Jacobson wrote: > C-x o runs the command other-window. > > Alas, if there is no other window, it does nothing. > > It doesn't even print a message "no other window". BUG! > > Better yet in this case would be just switch to an other buffer (the > same buffer that switch-to-buffer asks the user about, but without > asking the user.) > > And only if there is also no other buffer, then print the message. How about this http://mbork.pl/2017-02-26_other-window-or-switch-buffer and that http://mbork.pl/2017-06-12_smart-next-window-or-buffer ? Best, -- Marcin Borkowski From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 19:32:04 2017 Received: (at 27717) by debbugs.gnu.org; 16 Jul 2017 23:32:04 +0000 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 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 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= 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) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Marcin Borkowski Subject: Re: bug#27717: other-window when there is no other window References: <87efthjxb2.fsf@jidanni.org> Date: Mon, 17 Jul 2017 07:31:58 +0800 Message-ID: <8760esot5d.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27717 Cc: 27717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) >>>>> "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. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 03:03:48 2017 Received: (at 27717) by debbugs.gnu.org; 17 Jul 2017 07:03:48 +0000 Received: from localhost ([127.0.0.1]:43086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX04J-0001oI-0G for submit@debbugs.gnu.org; Mon, 17 Jul 2017 03:03:48 -0400 Received: from mout.gmx.net ([212.227.17.22]:64335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX04H-0001o4-Nz for 27717@debbugs.gnu.org; Mon, 17 Jul 2017 03:03:46 -0400 Received: from [192.168.1.100] ([213.162.68.93]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MQNFY-1d3DBx0uR2-00Timh; Mon, 17 Jul 2017 09:03:25 +0200 Message-ID: <596C6136.9040805@gmx.at> Date: Mon, 17 Jul 2017 09:03:18 +0200 From: martin rudalics MIME-Version: 1.0 To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= , Marcin Borkowski Subject: Re: bug#27717: other-window when there is no other window References: <87efthjxb2.fsf@jidanni.org> <8760esot5d.fsf@jidanni.org> In-Reply-To: <8760esot5d.fsf@jidanni.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:C+y4SMfbjx6RdvWu1MoJKFrvZ6QE/eM+xaXuH5u3C5vdr7SqFEA r4n7jCDdm4gUaqT2Wlirwz1BjP67GPsc8e8uvnZoQGWyDSzKCnP5mQyjzp2/JBekI2f+hX1 WAxKqW8lSg5pni+2m78o2qFdh3jQafRwtvUr+r9gwwq2DpN4FH1MpHRqj/7ndEMhy9aSosf qM0d6OUNQ++9Ib8yejTQA== X-UI-Out-Filterresults: notjunk:1;V01:K0:FCsywVEMdPg=:jh7qOw4F5wgJmDKmVC7Tpu 3yqgnnxvufRgLRW34l/SQ73oTU24eurFIXFDg+FYeDlCbNQcAOsRPajmvv++3TY/uDt2EGm33 wk8DI/QJb6xuuaVzogvmfsGR6uEzGkRoFpI8h9pBhToLmhkY3Kpz8rN7kwqr31lJm1c8S7PoL vDR4gD/up0lpGn3Zqmnd0AolroRjVmel+goKCRHAL7pI+WuzChRrCfBntV4SX+7Dl4Wh22+wF vimmOgL4pwQ+aLYsXDaAB6dt7f9c4Cyh5H5TBrEXX82AkQBrpMtX1YqS31mdeKhRCcdR/qVsA au5yEajFN5SdkgtKuHDIPS4eRaQaAP1qT7O7S5f8qeNMHPv6FJUE4F7/VYSBPpGaTHdAv9n+/ m7IgXrYEUMLOYyAifP6y56Xax3ethMcZmiPa7SUcdhxdC6X7JYS3edrR+HKbBY6n5l0ztDG5l xbwqKbPMLx8lQ3cUS/6KhCZf5aR7KYtuPd4b8egpIJH4lfNXG+ECmq8RmRUxSBdqV1wV8i9xE ZBkuSq1GB5UWZyHkeLuREV+lxDAGqKZwzOoo+U66ou5CNv6BE1yLV1vhykqxq6C6Elk1hqTHk p0CkzduafLd+e4RA+3jn4rIXuCp5QruGSnN+eD1cCx0W3/1DMEw2iyJMDnaQPBK+rXMF59vdg SC9uT3n01+B755NayXyEOgsh6wG4LoSbJ+v//+CDQP/dEIpaSApGDLYU9KDbxq++7FGSTl7om 6Qg260pByGmeFJIHUa2Xb0iFy7XxYdAYjEpmzzQIdkDPTyHL+VEZnNlfbE/EcIH539UWOVYh5 zDzycP6yS6QtRQshBuw4KkO6udheVufryxFqdmcDWbtc6RMrC4= X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 27717 Cc: 27717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) > (global-set-key "\C-xb" #'other-window-or-switch-buffer) > > but there is something wrong with the ASCII or something. Try adding a space to get "\C-x b". martin From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 04:19:02 2017 Received: (at 27717) by debbugs.gnu.org; 17 Jul 2017 08:19:02 +0000 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 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 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= 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) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: martin rudalics Subject: Re: bug#27717: other-window when there is no other window References: <87efthjxb2.fsf@jidanni.org> Date: Mon, 17 Jul 2017 16:18:52 +0800 Message-ID: <87zic379xv.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27717 Cc: Marcin Borkowski , 27717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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.) From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 17 19:37:56 2019 Received: (at 27717) by debbugs.gnu.org; 17 Aug 2019 23:37:56 +0000 Received: from localhost ([127.0.0.1]:57129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz8Gg-0007eC-Js for submit@debbugs.gnu.org; Sat, 17 Aug 2019 19:37:56 -0400 Received: from quimby.gnus.org ([80.91.231.51]:57402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz8Ge-0007e2-Km for 27717@debbugs.gnu.org; Sat, 17 Aug 2019 19:37:53 -0400 Received: from [50.225.213.182] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hz8Gb-00055v-Ai; Sun, 18 Aug 2019 01:37:52 +0200 From: Lars Ingebrigtsen To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#27717: other-window when there is no other window References: <87efthjxb2.fsf@jidanni.org> Date: Sat, 17 Aug 2019 16:37:46 -0700 In-Reply-To: <87efthjxb2.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Sun, 16 Jul 2017 03:48:49 +0800") Message-ID: <87ef1j8it1.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 積丹尼 Dan Jacobson writes: > C-x o runs the command other-window. > > Alas, if there is no other window, it does nothing. > > It doesn't even print a message "no other window". BUG! Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 27717 Cc: 27717@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > C-x o runs the command other-window. > > Alas, if there is no other window, it does nothing. > > It doesn't even print a message "no other window". BUG! This has been fixed on the trunk now. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 17 19:38:04 2019 Received: (at control) by debbugs.gnu.org; 17 Aug 2019 23:38:04 +0000 Received: from localhost ([127.0.0.1]:57133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz8Gp-0007f7-TL for submit@debbugs.gnu.org; Sat, 17 Aug 2019 19:38:04 -0400 Received: from quimby.gnus.org ([80.91.231.51]:57416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz8Go-0007eh-68 for control@debbugs.gnu.org; Sat, 17 Aug 2019 19:38:02 -0400 Received: from [50.225.213.182] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hz8Gl-000562-8c for control@debbugs.gnu.org; Sun, 18 Aug 2019 01:38:01 +0200 Date: Sat, 17 Aug 2019 16:37:57 -0700 Message-Id: <87d0h38isq.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27717 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 27717 fixed close 27717 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 27717 fixed close 27717 27.1 quit From unknown Sat Aug 16 10:46:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 15 Sep 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator