From unknown Thu Aug 14 21:51:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13898: 24.3.50; Non-cycle completion can use the wrong window Resent-From: Jorgen Schaefer Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Mar 2013 20:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13898 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13898@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13626872226131 (code B ref -1); Thu, 07 Mar 2013 20:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Mar 2013 20:13:42 +0000 Received: from localhost ([127.0.0.1]:37072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDhC6-0001am-Mg for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:13:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53232) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDhC3-0001aZ-SK for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:13:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDhBP-0005nv-2X for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:12:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBO-0005nr-VT for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:12:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBM-0005mI-64 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDhBK-0005mM-I8 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:52 -0500 Received: from istinn.electusmatari.com ([83.169.37.145]:47268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBK-0005m8-Bb for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:50 -0500 Received: from orion.kollektiv-hamburg.de (hmbg-4d06ea2d.pool.mediaWays.net [77.6.234.45]) by istinn.electusmatari.com (Postfix) with ESMTPSA id 0B9C4D10001E for ; Thu, 7 Mar 2013 21:12:48 +0100 (CET) Received: by orion.kollektiv-hamburg.de (Postfix, from userid 1000) id 747F132CAD6; Thu, 7 Mar 2013 21:12:46 +0100 (CET) From: Jorgen Schaefer Date: Thu, 07 Mar 2013 21:12:46 +0100 Message-ID: <87haknt1dt.fsf@orion.kollektiv-hamburg.de> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Hello! When using `completion-at-point' (or any minibuffer completion), the completion can scroll a window different from the completions. Reproduction: 1) Create three windows using C-x 2, let's call them A, B and C from top to bottom. 2) Make sure all three of them are at the top of the buffer and have more text in them than fits in them (i.e. can be scrolled up; down; er; text can scroll up). 3) Start ielm (M-x ielm) in the bottommost. This is just to get a buffer in which tab completion happens, as opposed to the minibuffer. 4) Go to the topmost window, A. Then switch directly to the bottommost, i.e. switch to C so that A is still the "other" window. E.g. using M-: (select-window (nth 2 (window-list))) 5) Start a completion, e.g. using f TAB. A completion buffer shows up in window *B*. Hit TAB again. Notice that window *A* is cycling. The problem is that `minibuffer-complete' calls `scroll-other-window' even though that's not the correct window in this case. Trivial fix: --- lisp/minibuffer.el 2013-02-09 05:52:20 +0000 +++ lisp/minibuffer.el 2013-03-07 19:58:39 +0000 @@ -1050,7 +1050,8 @@ ;; If end is in view, scroll up to the beginning. (set-window-start window (point-min) nil) ;; Else scroll down one screen. - (scroll-other-window)) + (with-selected-window window + (scroll-up))) nil))) ;; If we're cycling, keep on cycling. ((and completion-cycling completion-all-sorted-completions) Regards, -- Jorgen PS. Not a regression, 24.2 already had this bug. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu) of 2013-03-02 on orion.kollektiv-hamburg.de Bzr revision: 111915 rgm@gnu.org-20130302111734-5qg3o3o84z1dxzdy Configured using: `configure --without-x --with-x-toolkit=no' From unknown Thu Aug 14 21:51:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13898: 24.3.50; Non-cycle completion can use the wrong window Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Mar 2013 22:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13898 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jorgen Schaefer Cc: 13898@debbugs.gnu.org Received: via spool by 13898-submit@debbugs.gnu.org id=B13898.136355900221523 (code B ref 13898); Sun, 17 Mar 2013 22:24:01 +0000 Received: (at 13898) by debbugs.gnu.org; 17 Mar 2013 22:23:22 +0000 Received: from localhost ([127.0.0.1]:60383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHLz7-0005b6-N6 for submit@debbugs.gnu.org; Sun, 17 Mar 2013 18:23:21 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:32906) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHLz6-0005av-Jz for 13898@debbugs.gnu.org; Sun, 17 Mar 2013 18:23:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpYZL/2dsb2JhbABEuzWDWRdzgh8BBVYjEAsOJhIUGA0kiCTBLZEKA6R6gV6DEw X-IPAS-Result: Av8EABK/CFFFpYZL/2dsb2JhbABEuzWDWRdzgh8BBVYjEAsOJhIUGA0kiCTBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5114358" Received: from 69-165-134-75.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.134.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Mar 2013 18:21:41 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 293F3AE3BB; Sun, 17 Mar 2013 18:21:41 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87haknt1dt.fsf@orion.kollektiv-hamburg.de> Date: Sun, 17 Mar 2013 18:21:41 -0400 In-Reply-To: <87haknt1dt.fsf@orion.kollektiv-hamburg.de> (Jorgen Schaefer's message of "Thu, 07 Mar 2013 21:12:46 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.5 (/) > ;; If end is in view, scroll up to the beginning. > (set-window-start window (point-min) nil) > ;; Else scroll down one screen. > - (scroll-other-window)) > + (with-selected-window window > + (scroll-up))) Looks good, please install, Stefan From unknown Thu Aug 14 21:51:04 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jorgen Schaefer Subject: bug#13898: closed (Re: 24.3.50; Non-cycle completion can use the wrong window) Message-ID: References: <20131124153926.2a875fa0@forcix.kollektiv-hamburg.de> <87haknt1dt.fsf@orion.kollektiv-hamburg.de> X-Gnu-PR-Message: they-closed 13898 X-Gnu-PR-Package: emacs Reply-To: 13898@debbugs.gnu.org Date: Sun, 24 Nov 2013 15:39:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1385307546-13627-1" This is a multi-part message in MIME format... ------------=_1385307546-13627-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13898: 24.3.50; Non-cycle completion can use the wrong window which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13898@debbugs.gnu.org. --=20 13898: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13898 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1385307546-13627-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13898-done) by debbugs.gnu.org; 24 Nov 2013 15:38:03 +0000 Received: from localhost ([127.0.0.1]:42243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vkbl3-0003Uf-GD for submit@debbugs.gnu.org; Sun, 24 Nov 2013 10:38:02 -0500 Received: from loki.jorgenschaefer.de ([83.169.37.145]:43678) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkaqT-00020j-3V for 13898-done@debbugs.gnu.org; Sun, 24 Nov 2013 09:39:34 -0500 Received: by loki.jorgenschaefer.de (Postfix, from userid 995) id B4DB015DC0006; Sun, 24 Nov 2013 15:39:31 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on istinn.electusmatari.com X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Received: from forcix.kollektiv-hamburg.de (x2f11dbe.dyn.telefonica.de [2.241.29.190]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id 63F2515DC0005 for <13898-done@debbugs.gnu.org>; Sun, 24 Nov 2013 15:39:31 +0100 (CET) Date: Sun, 24 Nov 2013 15:39:26 +0100 From: Jorgen Schaefer To: 13898-done@debbugs.gnu.org Subject: Re: 24.3.50; Non-cycle completion can use the wrong window Message-ID: <20131124153926.2a875fa0@forcix.kollektiv-hamburg.de> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 13898-done X-Mailman-Approved-At: Sun, 24 Nov 2013 10:37:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) Patch applied in revno 115210. Regards, Jorgen ------------=_1385307546-13627-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Mar 2013 20:13:42 +0000 Received: from localhost ([127.0.0.1]:37072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDhC6-0001am-Mg for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:13:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53232) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDhC3-0001aZ-SK for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:13:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDhBP-0005nv-2X for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:12:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBO-0005nr-VT for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:12:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBM-0005mI-64 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDhBK-0005mM-I8 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:52 -0500 Received: from istinn.electusmatari.com ([83.169.37.145]:47268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBK-0005m8-Bb for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:50 -0500 Received: from orion.kollektiv-hamburg.de (hmbg-4d06ea2d.pool.mediaWays.net [77.6.234.45]) by istinn.electusmatari.com (Postfix) with ESMTPSA id 0B9C4D10001E for ; Thu, 7 Mar 2013 21:12:48 +0100 (CET) Received: by orion.kollektiv-hamburg.de (Postfix, from userid 1000) id 747F132CAD6; Thu, 7 Mar 2013 21:12:46 +0100 (CET) From: Jorgen Schaefer To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Non-cycle completion can use the wrong window Date: Thu, 07 Mar 2013 21:12:46 +0100 Message-ID: <87haknt1dt.fsf@orion.kollektiv-hamburg.de> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Hello! When using `completion-at-point' (or any minibuffer completion), the completion can scroll a window different from the completions. Reproduction: 1) Create three windows using C-x 2, let's call them A, B and C from top to bottom. 2) Make sure all three of them are at the top of the buffer and have more text in them than fits in them (i.e. can be scrolled up; down; er; text can scroll up). 3) Start ielm (M-x ielm) in the bottommost. This is just to get a buffer in which tab completion happens, as opposed to the minibuffer. 4) Go to the topmost window, A. Then switch directly to the bottommost, i.e. switch to C so that A is still the "other" window. E.g. using M-: (select-window (nth 2 (window-list))) 5) Start a completion, e.g. using f TAB. A completion buffer shows up in window *B*. Hit TAB again. Notice that window *A* is cycling. The problem is that `minibuffer-complete' calls `scroll-other-window' even though that's not the correct window in this case. Trivial fix: --- lisp/minibuffer.el 2013-02-09 05:52:20 +0000 +++ lisp/minibuffer.el 2013-03-07 19:58:39 +0000 @@ -1050,7 +1050,8 @@ ;; If end is in view, scroll up to the beginning. (set-window-start window (point-min) nil) ;; Else scroll down one screen. - (scroll-other-window)) + (with-selected-window window + (scroll-up))) nil))) ;; If we're cycling, keep on cycling. ((and completion-cycling completion-all-sorted-completions) Regards, -- Jorgen PS. Not a regression, 24.2 already had this bug. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu) of 2013-03-02 on orion.kollektiv-hamburg.de Bzr revision: 111915 rgm@gnu.org-20130302111734-5qg3o3o84z1dxzdy Configured using: `configure --without-x --with-x-toolkit=no' ------------=_1385307546-13627-1-- From unknown Thu Aug 14 21:51:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13898: [babc40c4] minibuffer-complete does not cycle anymore References: <87haknt1dt.fsf@orion.kollektiv-hamburg.de> In-Reply-To: <87haknt1dt.fsf@orion.kollektiv-hamburg.de> Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2013 19:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13898 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13898@debbugs.gnu.org, control@debbugs.gnu.org Received: via spool by 13898-submit@debbugs.gnu.org id=B13898.138601175031971 (code B ref 13898); Mon, 02 Dec 2013 19:16:01 +0000 Received: (at 13898) by debbugs.gnu.org; 2 Dec 2013 19:15:50 +0000 Received: from localhost ([127.0.0.1]:55083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnYyC-0008JV-Uu for submit@debbugs.gnu.org; Mon, 02 Dec 2013 14:15:49 -0500 Received: from fely.am-1.org ([78.47.74.50]:54638) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnYy9-0008JF-5B; Mon, 02 Dec 2013 14:15:46 -0500 Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1VnYy7-0000qQ-Ce; Mon, 02 Dec 2013 19:15:43 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VnYy0-0004cO-3y; Tue, 03 Dec 2013 02:15:36 +0700 From: Ivan Shmakov Date: Mon, 02 Dec 2013 19:15:34 +0000 Message-ID: <874n6rawtl.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) reopen 13898 thanks =E2=80=A6 It may be due to a different bug, but as of babc40c41c5c, minibuffer-complete does not cycle anymore. Example: C-h f TAB TAB TAB=E2=80=A6 =E2=80=93 the TABs after the first see= m to have no visible effect whatsoever. Since reverting the change made in 35b3f07859c4 restores the proper minibuffer-complete behavior, I took the liberty to reopen #13898. (Feel free to clone and close it if necessary.) --=20 FSF associate member #7257 From unknown Thu Aug 14 21:51:04 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jorgen Schaefer Subject: bug#13898: closed (Re: [babc40c4] minibuffer-complete does not cycle anymore) Message-ID: References: <87fvq76r3o.fsf@violet.siamics.net> <87haknt1dt.fsf@orion.kollektiv-hamburg.de> X-Gnu-PR-Message: they-closed 13898 X-Gnu-PR-Package: emacs Reply-To: 13898@debbugs.gnu.org Date: Thu, 05 Dec 2013 19:22:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1386271324-17847-1" This is a multi-part message in MIME format... ------------=_1386271324-17847-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13898: 24.3.50; Non-cycle completion can use the wrong window which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13898@debbugs.gnu.org. --=20 13898: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13898 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1386271324-17847-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13898-done) by debbugs.gnu.org; 5 Dec 2013 19:22:01 +0000 Received: from localhost ([127.0.0.1]:60344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoeUq-0004dd-OI for submit@debbugs.gnu.org; Thu, 05 Dec 2013 14:22:00 -0500 Received: from fely.am-1.org ([78.47.74.50]:54915) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoeUo-0004dV-UX for 13898-done@debbugs.gnu.org; Thu, 05 Dec 2013 14:21:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=IOUfhbWd1mROPr54vs17DqbcXKSipeI48pV27vGGpEQ=; b=lUOwZkmQ7bgMbmquTTVJfphy08eLYIrVOhmh6UVQjaT0ckUx4YKF4BlDvpCv0dpFuhuPfU+yqUeZOj4E8UR4PJMwsJOYu0Ovam9O+kTn/4zi+r4dbZ7HDUyoW25VXfacEdU9xekhyFkXWbmL/ZiIt6vVSBuX6PZzfQZ0uNCuFkM=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1VoeUn-0007Yf-Au for 13898-done@debbugs.gnu.org; Thu, 05 Dec 2013 19:21:57 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VoeUe-00006t-SS for 13898-done@debbugs.gnu.org; Fri, 06 Dec 2013 02:21:49 +0700 From: Ivan Shmakov To: 13898-done@debbugs.gnu.org Subject: Re: [babc40c4] minibuffer-complete does not cycle anymore References: <874n6rawtl.fsf@violet.siamics.net> Date: Thu, 05 Dec 2013 19:21:47 +0000 In-Reply-To: <874n6rawtl.fsf@violet.siamics.net> (Ivan Shmakov's message of "Mon, 02 Dec 2013 19:15:34 +0000") Message-ID: <87fvq76r3o.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 13898-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) >>>>> Ivan Shmakov writes: > reopen 13898 thanks > =E2=80=A6 It may be due to a different bug, but as of babc40c41c5c, > minibuffer-complete does not cycle anymore. And even quite likely so, as as of 0dd4ebbcf94d, it all seem to work correctly. Sorry for the noise, closing this one back. > Example: C-h f TAB TAB TAB=E2=80=A6 =E2=80=93 the TABs after the first s= eem to have > no visible effect whatsoever. > Since reverting the change made in 35b3f07859c4 restores the proper > minibuffer-complete behavior, I took the liberty to reopen #13898. > (Feel free to clone and close it if necessary.) --=20 FSF associate member #7257 ------------=_1386271324-17847-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Mar 2013 20:13:42 +0000 Received: from localhost ([127.0.0.1]:37072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDhC6-0001am-Mg for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:13:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53232) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDhC3-0001aZ-SK for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:13:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDhBP-0005nv-2X for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:12:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBO-0005nr-VT for submit@debbugs.gnu.org; Thu, 07 Mar 2013 15:12:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBM-0005mI-64 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDhBK-0005mM-I8 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:52 -0500 Received: from istinn.electusmatari.com ([83.169.37.145]:47268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDhBK-0005m8-Bb for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 15:12:50 -0500 Received: from orion.kollektiv-hamburg.de (hmbg-4d06ea2d.pool.mediaWays.net [77.6.234.45]) by istinn.electusmatari.com (Postfix) with ESMTPSA id 0B9C4D10001E for ; Thu, 7 Mar 2013 21:12:48 +0100 (CET) Received: by orion.kollektiv-hamburg.de (Postfix, from userid 1000) id 747F132CAD6; Thu, 7 Mar 2013 21:12:46 +0100 (CET) From: Jorgen Schaefer To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Non-cycle completion can use the wrong window Date: Thu, 07 Mar 2013 21:12:46 +0100 Message-ID: <87haknt1dt.fsf@orion.kollektiv-hamburg.de> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Hello! When using `completion-at-point' (or any minibuffer completion), the completion can scroll a window different from the completions. Reproduction: 1) Create three windows using C-x 2, let's call them A, B and C from top to bottom. 2) Make sure all three of them are at the top of the buffer and have more text in them than fits in them (i.e. can be scrolled up; down; er; text can scroll up). 3) Start ielm (M-x ielm) in the bottommost. This is just to get a buffer in which tab completion happens, as opposed to the minibuffer. 4) Go to the topmost window, A. Then switch directly to the bottommost, i.e. switch to C so that A is still the "other" window. E.g. using M-: (select-window (nth 2 (window-list))) 5) Start a completion, e.g. using f TAB. A completion buffer shows up in window *B*. Hit TAB again. Notice that window *A* is cycling. The problem is that `minibuffer-complete' calls `scroll-other-window' even though that's not the correct window in this case. Trivial fix: --- lisp/minibuffer.el 2013-02-09 05:52:20 +0000 +++ lisp/minibuffer.el 2013-03-07 19:58:39 +0000 @@ -1050,7 +1050,8 @@ ;; If end is in view, scroll up to the beginning. (set-window-start window (point-min) nil) ;; Else scroll down one screen. - (scroll-other-window)) + (with-selected-window window + (scroll-up))) nil))) ;; If we're cycling, keep on cycling. ((and completion-cycling completion-all-sorted-completions) Regards, -- Jorgen PS. Not a regression, 24.2 already had this bug. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu) of 2013-03-02 on orion.kollektiv-hamburg.de Bzr revision: 111915 rgm@gnu.org-20130302111734-5qg3o3o84z1dxzdy Configured using: `configure --without-x --with-x-toolkit=no' ------------=_1386271324-17847-1-- From unknown Thu Aug 14 21:51:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13898: [babc40c4] minibuffer-complete does not cycle anymore Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Dec 2013 20:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13898 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13898@debbugs.gnu.org Cc: ivan@siamics.net, forcer@forcix.cx Received: via spool by 13898-submit@debbugs.gnu.org id=B13898.138627433622792 (code B ref 13898); Thu, 05 Dec 2013 20:13:02 +0000 Received: (at 13898) by debbugs.gnu.org; 5 Dec 2013 20:12:16 +0000 Received: from localhost ([127.0.0.1]:60410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VofHT-0005vX-8f for submit@debbugs.gnu.org; Thu, 05 Dec 2013 15:12:15 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:57219) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VofHR-0005vP-OG for 13898@debbugs.gnu.org; Thu, 05 Dec 2013 15:12:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxL6g/2dsb2JhbABEhke4Rxdzgh8BBSMzIxALGgIYDgICFBgNiEiuX5JOgSOMPoIWgRMDiGGcGYFegxU X-IPAS-Result: Av8EABK/CFFFxL6g/2dsb2JhbABEhke4Rxdzgh8BBSMzIxALGgIYDgICFBgNiEiuX5JOgSOMPoIWgRMDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="41239969" Received: from 69-196-190-160.dsl.teksavvy.com (HELO pastel.home) ([69.196.190.160]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 Dec 2013 15:12:12 -0500 Received: by pastel.home (Postfix, from userid 20848) id 04A9A602B1; Thu, 5 Dec 2013 15:12:11 -0500 (EST) From: Stefan Monnier Message-ID: References: <874n6rawtl.fsf@violet.siamics.net> <87fvq76r3o.fsf@violet.siamics.net> Date: Thu, 05 Dec 2013 15:12:11 -0500 In-Reply-To: <87fvq76r3o.fsf@violet.siamics.net> (Ivan Shmakov's message of "Thu, 05 Dec 2013 19:21:47 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (/) >> =E2=80=A6 It may be due to a different bug, but as of babc40c41c5c, >> minibuffer-complete does not cycle anymore. > And even quite likely so, as as of 0dd4ebbcf94d, it all seem to > work correctly. I don't know what those rev-ids correspond to, but... I'm glad it all works out ;-) Stefan From unknown Thu Aug 14 21:51:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13898: [babc40c4] minibuffer-complete does not cycle anymore Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2013 18:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13898 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13898@debbugs.gnu.org Received: via spool by 13898-submit@debbugs.gnu.org id=B13898.13863539807336 (code B ref 13898); Fri, 06 Dec 2013 18:20:02 +0000 Received: (at 13898) by debbugs.gnu.org; 6 Dec 2013 18:19:40 +0000 Received: from localhost ([127.0.0.1]:34536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vp003-0001uF-9U for submit@debbugs.gnu.org; Fri, 06 Dec 2013 13:19:39 -0500 Received: from fely.am-1.org ([78.47.74.50]:55016) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vp000-0001u5-Fo for 13898@debbugs.gnu.org; Fri, 06 Dec 2013 13:19:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=SxXXnPmPHjgmqYiC6uS1XSDrqSmdkz5yStBgq9asMug=; b=CxPn6uDUOTcPNEW1qPy9d1aZx4hCvJQMbJjpvnBcQSoRfKCNUlkC1f7pxNVgJX8l5vHre+hAdaW+vtUZqlyWmK8b9jlllhk3lhxAhOCrx0NMsopPNEjB5MeaI4PUv+MuTldRbrytLKqnnT1TMRy48O76UOQS/u2XI8EhXrrrqYM=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Vozzy-00014F-1P for 13898@debbugs.gnu.org; Fri, 06 Dec 2013 18:19:34 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Vozzq-0002Z3-OM for 13898@debbugs.gnu.org; Sat, 07 Dec 2013 01:19:26 +0700 From: Ivan Shmakov References: <874n6rawtl.fsf@violet.siamics.net> <87fvq76r3o.fsf@violet.siamics.net> Date: Fri, 06 Dec 2013 18:19:25 +0000 In-Reply-To: (Stefan Monnier's message of "Thu, 05 Dec 2013 15:12:11 -0500") Message-ID: <87wqjh6dw2.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) >>>>> Stefan Monnier writes: >>> =E2=80=A6 It may be due to a different bug, but as of babc40c41c5c, >>> minibuffer-complete does not cycle anymore. >> And even quite likely so, as as of 0dd4ebbcf94d, it all seem to work >> correctly. > I don't know what those rev-ids correspond to, but... I'm glad it > all works out ;-) JFTR: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3Dbabc40c41c5c http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D0dd4ebbcf94d --=20 FSF associate member #7257