From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#7464: 24.0.50; mouse highlighting vanishes upon unsplitting window Date: Thu, 29 Mar 2012 09:57:53 +0200 Message-ID: <874nt7hm9q.fsf@escher.home> References: <877hg5l828.fsf@escher.home> <8362vp9rci.fsf@gnu.org> <83y68l88xd.fsf@gnu.org> <87sjh12a0d.fsf@gnu.org> <871uolhmdx.fsf@escher.home> <83d381u9xy.fsf@gnu.org> <87limpoenv.fsf@escher.home> <83vclts5aq.fsf@gnu.org> <87pqc0bzyp.fsf@escher.home> <83mx70imgh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333007937 2039 80.91.229.3 (29 Mar 2012 07:58:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2012 07:58:57 +0000 (UTC) Cc: cyd@gnu.org, 7464@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 09:58:56 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 1SDAFy-0007UW-0i for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 09:58:54 +0200 Original-Received: from localhost ([::1]:60053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDAFx-0000Hx-GY for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 03:58:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDAFq-0000Ho-7B for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 03:58:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDAFj-0006ZC-PA for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 03:58:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDAFj-0006Yk-LN for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 03:58:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SDAk6-0002Cq-Is for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 04:30:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <877hg5l828.fsf@escher.home> Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Mar 2012 08:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7464 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7464-submit@debbugs.gnu.org id=B7464.13330097978446 (code B ref 7464); Thu, 29 Mar 2012 08:30:02 +0000 Original-Received: (at 7464) by debbugs.gnu.org; 29 Mar 2012 08:29:57 +0000 Original-Received: from localhost ([127.0.0.1]:44023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDAk0-0002CA-RW for submit@debbugs.gnu.org; Thu, 29 Mar 2012 04:29:57 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:44318) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SDAjR-0002BU-Vb for 7464@debbugs.gnu.org; Thu, 29 Mar 2012 04:29:55 -0400 Original-Received: (qmail invoked by alias); 29 Mar 2012 07:57:54 -0000 Original-Received: from i59F560B4.versanet.de (EHLO escher.home) [89.245.96.180] by mail.gmx.net (mp001) with SMTP; 29 Mar 2012 09:57:54 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1876+MqSS8709DJfmEFV+YHblZ7MQdShhwjaDV+oj EbajQKCX2/D0sP User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-Y-GMX-Trusted: 0 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:58281 Archived-At: On Wed, 28 Mar 2012 20:56:14 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: cyd@gnu.org, 7464@debbugs.gnu.org >> Date: Sun, 25 Mar 2012 14:57:18 +0200 >> >> >> why do I not see the bug in Emacs 23? (And why does Chong Yidong >> >> not see it in Emacs 24?) >> > >> > I don't know. I can describe in detail what I saw in the debugger and >> > where, and then you and Chong could step through the same places and >> > see what, if anything, is different for you there. >> >> It would interest me to try, when you have the time. > > Here's what I see in GDB when I step through Emacs 24 code > (delete-other-windows-internal): Thanks for the very instructive debugging details; they led to some unexpected observations, which I hope you can (help me) make sense of. Since unlike you I did't see the highlighting disappear in Emacs 23, I wanted to try and follow your instructions there, and since I don't have the C sources of 23.3 from openSUSE installed on my machine, I downloaded the tarball of 23.4, configured and built it, and tested the bug recipe -- and to my surprise, I hit the bug: the mouse highlighting vanished, just as I observe with Emacs 24. I don't think the window deletion code of 23.4 differs from that of 23.4, but the two builds do differ in a way I didn't think would be relevant, but proved to be: openSUSE's 23.3 has GTK scroll bars, while I built 23.4 like I build 24, i.e., without toolkit scroll bars. So I rebuilt 23.4 with GTK scroll bars, did the bug recipe and sure enough, now the mouse highlighting remained, i.e., no bug. Then I disabled the scroll bars in that build, tested again, and got the bug again. Then I rebuilt Emacs 24 with GTK scroll bars, and now did not see the bug with them enabled but did see it with them disabled. So the answers to my questions above appear to involve the presence vs. absence of GTK scroll bars. (I guess Chong Yidong also builds Emacs 24 with GTK scroll bars and tested the recipe with them enabled, so that's why he did not observe the bug.) After these tests, I ran both Emacs 24 builds (i.e., with and without GTK scroll bars) under gdb, and in both cases, the value of (w->current_matrix->rows+1)->mouse_face_p is 0 both at the breakpoint and after the call to free_window_matrices (and of course after adjust_glyphs). I also ran 23.4 under gdb, with the same result: (w->current_matrix->rows+1)->mouse_face_p is already 0 before adjust_glyphs. Do you have any idea why, or any further debugging suggestions? Steve Berman