From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Warsaw Newsgroups: gmane.emacs.bugs Subject: bug#14829: 24.3; split-window-keep-point breaks shell tab completion Date: Fri, 12 Jul 2013 10:18:38 -0400 Organization: Damn Crazy Followers of the Horn Message-ID: <20130712101838.21d21cd3@anarchist> References: <20130708170808.555814cb@limelight.wooz.org> <51DFBC46.6020709@gmx.at> <83bo685dth.fsf@gnu.org> <51DFD6A9.9020901@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/rG5=7dh.LqD2LppMlSWAG4L"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1373638757 27657 80.91.229.3 (12 Jul 2013 14:19:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 14:19:17 +0000 (UTC) Cc: 14829@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 16:19:16 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UxeBo-00028l-FE for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 16:19:16 +0200 Original-Received: from localhost ([::1]:56909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxeBn-0001Vc-RX for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 10:19:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxeBi-0001UZ-2W for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 10:19:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxeBa-0001XF-QB for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 10:19:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxeBa-0001XA-NI for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 10:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UxeBa-0002D3-Bt for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 10:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Barry Warsaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2013 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14829 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14829-submit@debbugs.gnu.org id=B14829.13736387288458 (code B ref 14829); Fri, 12 Jul 2013 14:19:02 +0000 Original-Received: (at 14829) by debbugs.gnu.org; 12 Jul 2013 14:18:48 +0000 Original-Received: from localhost ([127.0.0.1]:50464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxeBL-0002CM-Nw for submit@debbugs.gnu.org; Fri, 12 Jul 2013 10:18:48 -0400 Original-Received: from mail.wooz.org ([216.15.33.194]:49227) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxeBJ-0002Bz-I0 for 14829@debbugs.gnu.org; Fri, 12 Jul 2013 10:18:46 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id 2F8D71080451; Fri, 12 Jul 2013 10:18:40 -0400 (EDT) Original-Received: from mail.wooz.org ([127.0.0.1]) by localhost (carnies.wooz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wprHYIZ7FeJN; Fri, 12 Jul 2013 10:18:40 -0400 (EDT) Original-Received: from anarchist (anarchist.wooz.org [192.168.11.111]) by mail.wooz.org (Postfix) with ESMTPSA id D68BA1080075; Fri, 12 Jul 2013 10:18:39 -0400 (EDT) In-Reply-To: <51DFD6A9.9020901@gmx.at> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76282 Archived-At: --Sig_/rG5=7dh.LqD2LppMlSWAG4L Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Jul 12, 2013, at 12:12 PM, martin rudalics wrote: > > Maybe it is split, and then deleted, before we have a chance of > > displaying it? > >Maybe it is not split at all for other reasons. But that decision >should never be affected by `split-window-keep-point'. Barry, can you >check whether and/or why not a window splitting occurs? With this workaround: (defadvice completion-at-point (around completion-at-point-around) "Point safe completion" (let ((split-window-keep-point t)) ad-do-it)) (ad-activate 'completion-at-point) and the setup I mentioned earlier (e.g. shell buffer filled with output, prompt on bottom line of window)... If you deactivate the advice, what happens when you hit TAB is that you don= 't see the split, but you also don't see the completion buffer. Point just ju= mps up to the end-of-line on a line about half-way up the window. With the advice activated, the window gets split, with the completion buffer on bottom, and the shell buffer scrolled up so that point remains on the prompt line which is now approximately in the middle of its buffer (looks to be a few lines lower, but that's really immaterial). I notice the exact same behavior in an ERC window, so it's clearly related = to completion-at-point. Hence the advice in the workaround. --Sig_/rG5=7dh.LqD2LppMlSWAG4L Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBCAAGBQJR4BA+AAoJEBJutWOnSwa/GMcP/3q4qa6jH3RAeFHLi4xkRrjZ g5CyM6PvVQ52Fyo6kIDUKobD/3dEw4vZ1N+168MgH78FAYj95t42kEqImWwqb5y5 1vKI9GYtN8rncgxSlY48JILHO+s/J6tGjmH/Lsp3vlZlayJjRMOeH0LZiF4ngP1/ B7RGkpLOPkNZX/HiSF2ejCvLN1AUzn7LAdzv3u5admFweL4Kf/J3sItmkGIVeIyN bNxxq00/X5bn92ehM7O5KGsGukAB9OBynzTVgWu6MPUaIw/t5QsyOPlU0+9ZKuzE jo2ZjUXAkf3wDrSkSjIDNaCtOQkJEi7YsHOQcXU3gx1PL3ZbTnF49vhquqhkMTEm WRHmI7iKsAPqww27+LShEik0R8LjSRIGXFnilAOefhIALRvlo1NgEGPzdjyZPCrz n6XmgzA6Rmq+T+27gpZUS9t4dfV8yIwe1+5TRNw+ay35kGJKxVihHnwf399lJyxh b9GBKWr5Pw2BjpDtNLyzb3sq8UDF7SyfPXT1Kt8I0xHEiVE0i1cCAwTYkHMZuy4d 6ml5rdJ3jfQp3zPaSCUR8ybs3qSjycQR4piVQFXlQvXiSCPfemkRG4MGXEntBVFt Ha+rn5kOf+wbpAVZjXdARq7g0xe1ZY6qLyyd03AtFtf5SRARwJciwuOdO/64hAi2 G+Qhxy7LywDIzwWROMCE =Qop0 -----END PGP SIGNATURE----- --Sig_/rG5=7dh.LqD2LppMlSWAG4L--