From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3686: 23.1.50; Sticky mouse-face highlighting Date: Fri, 26 Jun 2009 09:59:54 +0200 Message-ID: <87d48rqvb9.fsf@escher.local.home> Reply-To: Stephen Berman , 3686@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246004267 2897 80.91.229.12 (26 Jun 2009 08:17:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2009 08:17:47 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 26 10:17:40 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MK6cq-0001Lq-8S for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jun 2009 10:17:36 +0200 Original-Received: from localhost ([127.0.0.1]:44126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MK6cp-0004Jy-6t for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jun 2009 04:17:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MK6cl-0004Jl-UL for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 04:17:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MK6cg-0004Iv-U1 for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 04:17:31 -0400 Original-Received: from [199.232.76.173] (port=36164 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MK6cg-0004Iq-O8 for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 04:17:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54180) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MK6cg-0000yY-9k for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2009 04:17:26 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5Q8HNdg026933; Fri, 26 Jun 2009 01:17:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5Q855tn024333; Fri, 26 Jun 2009 01:05:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 26 Jun 2009 08:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3686 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124600320823079 (code B ref -1); Fri, 26 Jun 2009 08:05:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 26 Jun 2009 08:00:08 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5Q802xY023026 for ; Fri, 26 Jun 2009 01:00:04 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:53120 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MK6Lp-0006yX-Tn for emacs-pretest-bug@gnu.org; Fri, 26 Jun 2009 04:00:02 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MK6Lo-0005rw-1c for emacs-pretest-bug@gnu.org; Fri, 26 Jun 2009 04:00:01 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:33303) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MK6Ln-0005r6-Ct for emacs-pretest-bug@gnu.org; Fri, 26 Jun 2009 03:59:59 -0400 Original-Received: (qmail invoked by alias); 26 Jun 2009 07:59:55 -0000 Original-Received: from i59F559F0.versanet.de (EHLO escher.local.home) [89.245.89.240] by mail.gmx.net (mp051) with SMTP; 26 Jun 2009 09:59:55 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/9HLdUVvj9dDl600ZxHDObTHuRYIWT8lfysKPiqJ T2Re7wJLLBw9vV Original-Received: by escher.local.home (Postfix, from userid 1000) id 1DD001D1699; Fri, 26 Jun 2009 09:59:54 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 26 Jun 2009 04:17:31 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28984 gmane.emacs.pretest.bugs:24699 Archived-At: 1. Create the file ~/test.el with this content: (setq diary-display-function 'diary-fancy-display diary-number-of-entries 7) 2. Create the file ~/diary with this content: Jun 26, 2009 10:00 This is a test Jun 27, 2009 10:00 This is a test Jun 28, 2009 10:00 This is a test Jun 29, 2009 10:00 This is a test 3. emacs -Q -l ~/test.el 4. `M-x diary' pops up a fancy diary buffer with this content (line numbers added for subsequent reference): 1 Friday, June 26, 2009 2 ===================== 3 10:00 This is a test 4 5 Saturday, June 27, 2009 6 ======================= 7 10:00 This is a test 8 9 Sunday, June 28, 2009 10 ===================== 11 10:00 This is a test 12 13 Monday, June 29, 2009 14 ===================== 15 10:00 This is a test 16 5. Move the mouse pointer over the fancy diary buffer. => As expected, line 3, 7, 11, and 15 have mouse-face highlighting when the mouse pointer moves over them. However, lines 4, 8, and 12 (but not 16) also get mouse-face highlighting, and it remains when the mouse pointer moves off of those lines. I suspect this bug is due to this change: 2009-06-22 Chong Yidong * w32term.c (x_draw_glyph_string): Use the glyph string's width rather than its background_width for drawing the overline and underline (Bug#489). * xterm.c (x_draw_glyph_string): Use the glyph string's width rather than its background_width for drawing the overline and underline (Bug#489). (xg_default_icon_file): New variable. (syms_of_xterm): Initialize it to the Emacs SVG icon file. (x_bitmap_icon): Under GTK, use xg_default_icon_file. * xdisp.c (Qbefore_string, Qafter_string): Add externs. (load_overlay_strings): Remove externs. (fast_find_position): Function deleted. (mouse_face_from_buffer_pos): New function, based on fast_find_position. Correctly handle before-strings, display-strings, and after-strings (Bug#1220). (note_mouse_highlight): Use mouse_face_from_buffer_pos. since it does not happen with my previous build before this change, but I don't have time right now to confirm this by reverting the change. In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-06-23 on escher Windowing system distributor `The X.Org Foundation', version 11.0.10502000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default-enable-multibyte-characters: t