From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14829: (no subject) Date: Mon, 22 Jul 2013 13:18:20 -0400 Message-ID: References: <20130708170808.555814cb@limelight.wooz.org> <20130711153743.1858db0d@anarchist> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374515107 14328 80.91.229.3 (22 Jul 2013 17:45:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 17:45:07 +0000 (UTC) Cc: 14829@debbugs.gnu.org To: Barry Warsaw , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 19:45:08 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 1V1KAT-0002Pc-FP for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 19:45:05 +0200 Original-Received: from localhost ([::1]:35136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1KAS-0001Vy-Tx for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 13:45:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1KAO-0001SV-Td for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 13:45:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1K2X-0004u2-AX for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 13:36:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1JlG-0006Q4-DY for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 13:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V1JlG-0006hd-0B for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2013 13:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jul 2013 17:19: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.137451351025694 (code B ref 14829); Mon, 22 Jul 2013 17:19:01 +0000 Original-Received: (at 14829) by debbugs.gnu.org; 22 Jul 2013 17:18:30 +0000 Original-Received: from localhost ([127.0.0.1]:43067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V1Jkj-0006gJ-EG for submit@debbugs.gnu.org; Mon, 22 Jul 2013 13:18:29 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:12598) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V1Jkh-0006ft-GF for 14829@debbugs.gnu.org; Mon, 22 Jul 2013 13:18:28 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rw7r/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kAYgdBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFG4rw7r/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kAYgdBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="19538066" Original-Received: from 184-175-14-235.dsl.teksavvy.com (HELO pastel.home) ([184.175.14.235]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 22 Jul 2013 13:18:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E782A6D694; Mon, 22 Jul 2013 13:18:20 -0400 (EDT) In-Reply-To: <20130711153743.1858db0d@anarchist> (Barry Warsaw's message of "Thu, 11 Jul 2013 15:37:43 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:76576 Archived-At: > 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. 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? Stefan