From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Bug in mouse highlighting Date: Sat, 23 Oct 2004 09:54:19 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1098539718 21074 80.91.229.6 (23 Oct 2004 13:55:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Oct 2004 13:55:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 23 15:55:13 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CLMMT-0000V9-00 for ; Sat, 23 Oct 2004 15:55:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CLMU1-0008KA-09 for ged-emacs-devel@m.gmane.org; Sat, 23 Oct 2004 10:03:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CLMTY-00087Z-Nf for emacs-devel@gnu.org; Sat, 23 Oct 2004 10:02:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CLMTV-00085o-LX for emacs-devel@gnu.org; Sat, 23 Oct 2004 10:02:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CLMTV-00085e-Hg for emacs-devel@gnu.org; Sat, 23 Oct 2004 10:02:29 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CLMLn-0001eg-6l for emacs-devel@gnu.org; Sat, 23 Oct 2004 09:54:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CLMLb-00055d-Hp; Sat, 23 Oct 2004 09:54:19 -0400 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28783 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28783 Could someone who has worked on the display code recently please take a look at this bug? Please respond to this message if you work on it. To: emacs-pretest-bug@gnu.org From: Stephen Berman Date: Thu, 21 Oct 2004 18:11:01 +0200 Subject: Mouse-face overlay bleeds into header line Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Mouse-face overlays bleed into the header line when the beginning of the overlay is above (point-min). To reproduce: 1. Start Emacs with -q -no-site-file. 2. In *scratch* eval (setq ov (make-overlay 66 92)), (overlay-put ov 'mouse-face 'highlight), and (setq header-line-format "test"). 3. Drag the mouse over the string "evaluation.\n;; If you want" and notice the highlighting of only this string. 4. Now click on the down arrow in the scroll bar until the line beginning ";; If you want" is directly below the header line. 5. Drag the mouse over ";; If you want" and notice that not only it but also the header line are highlighted. I have only gotten this with mouse-face overlays; it doesn't happen with e.g. face overlays, nor with mouse-face text properties. It also happens with header lines from packages such as ruler.el and tabbar.el -- but not with Info (go to e.g. (elisp) Lisp Data Types and scroll down until line 22 "Types::.)" is at the top of the buffer, so that beginning of the mouse-face highlighting is above (point-min): dragging the mouse over "Types" highlights only it and not the header line). I don't know why the Info header line doesn't show this bleeding. I tried making a header the way the Info header line is made (as a text property), but still got the bleeding. This bleeding happens in CVS Emacs (with GTK, I haven't tested with other toolkits) but not in Emacs 21.3 (however, in Emacs 21.3 the same recipe yields a different bug: when you do step five, the header line does not get highlighted, but the highlighted ";; If you want" changes to "; If you wantt"). In GNU Emacs 21.3.50.2 (i686-pc-linux-gnu, GTK+ Version 2.2.3) of 2004-10-18 on feldmann configured using `configure '--with-x-toolkit=gtk'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C 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 locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Major mode: Help Minor modes in effect: show-paren-mode: t tabbar-mode: t auto-compression-mode: t display-time-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t column-number-mode: t line-number-mode: t view-mode: t Recent input: e s c x t SPC p r o p o e r t i e s SPC SPC SPC SPC SPC M-x C-g C-h f r e p o r - b e m C-h f q M-x r e p o r Recent messages: Creating customization buffer... Creating customization buttons... Creating customization items... Creating customization items ...done Creating customization setup... Creating customization buffer...done Fontifying .gnu-emacs-custom... (regexps..............) Wrote /home/steve/.gnu-emacs-custom [2 times] Making completion list... Loading emacsbug...done _______________________________________________ Emacs-pretest-bug mailing list Emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug