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: (no subject) Date: Mon, 22 Jul 2013 13:41:10 -0400 Organization: Damn Crazy Followers of the Horn Message-ID: <20130722134110.0e8f042a@limelight.wooz.org> References: <20130708170808.555814cb@limelight.wooz.org> <20130711153743.1858db0d@anarchist> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/oib01fxGnbeSR4uTz8wAVep"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1374514937 12406 80.91.229.3 (22 Jul 2013 17:42:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 17:42:17 +0000 (UTC) Cc: 14829@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 19:42:17 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 1V1K7h-0007Xc-L9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 19:42:13 +0200 Original-Received: from localhost ([::1]:60877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1K7h-0006WY-7m for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 13:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1K7Z-0006Nu-Os for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 13:42:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1K7W-0006pR-G8 for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 13:42:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1K7W-0006pI-CI for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 13:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V1K7V-0007Tr-UE for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 13:42: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: Mon, 22 Jul 2013 17:42:01 +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.137451487728654 (code B ref 14829); Mon, 22 Jul 2013 17:42:01 +0000 Original-Received: (at 14829) by debbugs.gnu.org; 22 Jul 2013 17:41:17 +0000 Original-Received: from localhost ([127.0.0.1]:43086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V1K6n-0007S6-8n for submit@debbugs.gnu.org; Mon, 22 Jul 2013 13:41:17 -0400 Original-Received: from mail.wooz.org ([216.15.33.194]:35033) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V1K6k-0007Rh-Du for 14829@debbugs.gnu.org; Mon, 22 Jul 2013 13:41:16 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.wooz.org (Postfix) with ESMTP id D24CC10801B7; Mon, 22 Jul 2013 13:41:08 -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 F+3rVrLetsoV; Mon, 22 Jul 2013 13:41:08 -0400 (EDT) Original-Received: from limelight.wooz.org (limelight.wooz.org [192.168.11.41]) by mail.wooz.org (Postfix) with ESMTPSA id 7EFBC1080071; Mon, 22 Jul 2013 13:41:08 -0400 (EDT) In-Reply-To: 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:76574 Archived-At: --Sig_/oib01fxGnbeSR4uTz8wAVep Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Jul 22, 2013, at 01:18 PM, Stefan Monnier wrote: >> This fixes it for me. >> ;; Work around a bug in split-window-keep-point and completion. >> (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) > >Hmm... looking at it further I see that: >- split-window-keep-point defaults to t. >- the problem could affect other cases than completion. >Basically, I'm leaning towards forcing split-window-keep-point to t in >display-buffer, since AFAICT a value of nil only makes sense when you >split a window into two so that they both show the same buffer, whereas >in the case of display-buffer, you always want the current buffer's >point to stay put. This seems reasonable to me, as long as it doesn't affect C-x 2. >Why do you (and other people) set split-window-keep-point to nil? >What is the expected behavior from it? > >The docstring seems to indicate it's only meant to affect C-x 2 rather >than all cases where we create a new window. Martin? C-x 2 is the only reason I set it to nil. There used to be an old XEmacs h= ack (might have been some of my personal elisp) that did what I think was called "slow-splitting" although it was not actually slow. It did exactly what C-= x 2 with s-w-k-p set to nil does. I love this for tall windows since in most cases, nothing changes except you get a modeline in the middle of the window where the split occurs. So I'm all in favor of keeping the behavior for C-x 2 and inhibiting it for all other purposes. I have definitely encountered other situations that the defadvice above does not handle. One example is pdb-track in python-mode. When you hit the breakpoint, the shell buffer is split with the code shown below, but the split does not happen correct. Point is left at the same bo= gus place as described in the original bug report. --Sig_/oib01fxGnbeSR4uTz8wAVep Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBCAAGBQJR7W62AAoJEBJutWOnSwa/+QgP/RzRxxKeBMob1zax0iJ1jk6m bbCm4CYY7HUt+4gQA643vttm0/st1VgHyAg8qRjG2LW4pX5/nnhcvR15c2ZASnXx gQvAhTC+6R7fDabTGVlyvKXt46fiH4XW8P6Qf5iXSbzdYokgccsCbxga8agx5shh 431KnJ7I7sl8L3Iq5uohh6WcoVw+Vqxej0CnltDzEpDT7e4CzP8nYpExpaq3NqNl rJqkIrJrvoEEzKXylQ2Oy0Nw1QF+F9sAnbvq4m7KZMtZ2P0lDtUEPqTDEbz2qQAc A+CWlSnDe62NSIUJvLXV3JxyRpUjerobCq+Lalld0THPRifq9bpGql3SG93LRCpd xH27PQ0MDNCdXJ2VRPdIPl/JSi9il8oVNKe6XpLOx+bKiQkrYmyTyXggyiCHAwJt u+hh0/sXt90hFjImm2EJBdLAPaNyf+Au4tEpNISKagekq9nXktXHMs9CKCbj3JTG s5IXU/HZLrKAiDLXuj06f6K+2/gQNwzqzAuzZkfdBNDWSyfoRCpAV9UbOh5E84G8 nu7RKGF848jPcKg1hyWn4/9xRzH6ngi8N0jB59Vln96XhWVFxjb/jSDGnOfeyPgi tcmjVAniGg4GliuL0yWJBfsLtjl3AWsfwAHFH35WHuq3jeK/hrwSqNIoP115IVA0 vqT2wlyoCOxlLZA5tY39 =C65D -----END PGP SIGNATURE----- --Sig_/oib01fxGnbeSR4uTz8wAVep--