From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12419: Mouse click changes layout Date: Fri, 14 Sep 2012 13:36:57 +0300 Message-ID: <83a9wsvqk6.fsf@gnu.org> References: <504FB55D.5030405@t-online.de> <5050432C.4060203@gmx.at> <5052450F.8030001@t-online.de> <5052F242.4060303@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1347619039 13386 80.91.229.3 (14 Sep 2012 10:37:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 10:37:19 +0000 (UTC) Cc: occitan@esperanto.org, 12419@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 12:37:21 2012 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 1TCTGw-0000dI-QS for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 12:37:18 +0200 Original-Received: from localhost ([::1]:38718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCTGs-0001mV-Nr for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 06:37:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCTGq-0001mO-6O for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 06:37:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCTGj-0003oS-SD for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 06:37:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCTGj-0003oE-OK for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 06:37:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCTHd-0004Tl-Vw for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 06:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2012 10:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12419 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12419-submit@debbugs.gnu.org id=B12419.134761906517118 (code B ref 12419); Fri, 14 Sep 2012 10:38:01 +0000 Original-Received: (at 12419) by debbugs.gnu.org; 14 Sep 2012 10:37:45 +0000 Original-Received: from localhost ([127.0.0.1]:33132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCTHM-0004S2-92 for submit@debbugs.gnu.org; Fri, 14 Sep 2012 06:37:44 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:37230) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCTHI-0004Rr-Mf for 12419@debbugs.gnu.org; Fri, 14 Sep 2012 06:37:42 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MAC006005GC4100@a-mtaout21.012.net.il> for 12419@debbugs.gnu.org; Fri, 14 Sep 2012 13:36:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAC005TI5H5UFB0@a-mtaout21.012.net.il>; Fri, 14 Sep 2012 13:36:42 +0300 (IDT) In-reply-to: <5052F242.4060303@gmx.at> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:64276 Archived-At: > Date: Fri, 14 Sep 2012 11:00:50 +0200 > From: martin rudalics > Cc: 12419@debbugs.gnu.org > > > I guess the annoying thing is that the resizing happens on mouse-down > > and side-ways scrolling on mouse-drag, i.e. in the middle of my > > operation. If it were deferred till mouse-up (or till I drag to outside > > of the window to force scrolling), then it would be consistent with > > regard to where I clicked. > > You could try to inject some code at the beginning of > `window--resize-root-window-vertically' that writes a backtrace into a > buffer. This way we could get some information about the kind of > mouse-event that caused the resizing. There's no need for anything that fancy, AFAICS. Here's the recipe I used: emacs -Q C-x 4 f xdisp.c RET C-x o M-> (message (make-string 380 ?a)) C-x C-e The "C-x C-e" should be typed with point after the last expression that calls 'message'. Note that evaluating that expression raises the mode line of both the lower and the upper windows. That didn't happen in Emacs 23.3, where it would only affect the mode line (and the lower part) of the _lower_ window that shows xdisp.c. Now move the mouse pointer to some place in the lower window, and press and hold the left mouse button. You will see the message in the echo area disappear, and the mode line of *scratch* move down, thus causing scroll of the text in the xdisp.c window below it. Again, this doesn't happen in Emacs 23.3. The same effect happens if, instead of clicking the mouse, you press some key. IOW, this is not limited to mouse clicks; instead, the reason is the removal of the message from the echo area, which is normal and happens upon any input. My conclusion from the above experiment is that the reason for the problem is that we somehow redistribute the screen real estate between the windows when the echo area grows/shrinks. Any pointers to where this happens are welcome.