unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Schmidt <ch@ristopher.com>
To: 17588@debbugs.gnu.org
Subject: bug#17588: 24.3.91; mouse-face glitchy
Date: Sun, 25 May 2014 15:04:18 -0400 (EDT)	[thread overview]
Message-ID: <87lhtpwuh5@ristopher.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

    emacs -q
    M-: (run-at-time nil 0.01
                     (lambda ()
                       (with-current-buffer (get-buffer-create "rms")
                         (with-silent-modifications
                           (dotimes (_ 10)
                             (insert (if (= (random 2) 1) "gpl" "fsf") "\n")))
                         (when (> (- (point-max) (point-min)) 100)
                           (delete-region (point-min) (+ (point-min) 100)))))) RET
    C-x 2
    C-x 3
    C-x b rms RET
    C-x o
    C-x b rms2 RET
    C-x o
    C-x b rms2 RET
    M-: (dotimes (i 1000)
          (insert (propertize (format "%3d%3d%3d" i i i)
                              'mouse-face 'highlight)
                  "\n")) RET
    # Move your mouse pointer around within the rms2 windows and the
    # modeline of the rms window.

I see two glitches with regard to mouse-face highlighting.  Either there
is no highlighting at all or the font does not switch back to the
regular one after leaving the connected highlight region.

[-- Attachment #2: bug.png --]
[-- Type: image/png, Size: 15588 bytes --]

[-- Attachment #3: Type: text/plain, Size: 964 bytes --]


This recipe is not exactly reliable.  It usually takes up to 20 seconds
of mouse movement to trigger the issue here.  Some scrolling helps.

I realise my recipe puts a lot of pressure on the display engine.  When
reducing the timer's REPEAT value, the issue does not vanish but is
harder to reproduce.  My real use-case, which provokes this issue after
a few minutes, is a process filter which updates the buffer of a window
exactly once a second.

When applying this recipe to 24.3 on the same system using the same
libraries for building the binary, there are some glitches.  Most
notably the mouse face of mode-line-buffer-identification is not reset
reliably.  Yet 24.3.91 is a lot worse than 24.3.  IMO this is a
regression.

    In GNU Emacs 24.3.91.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
    Repository revision: 117154 eliz@gnu.org-20140525141846-w6719v7ajcd3tbkk
    Windowing system distributor `The X.Org Foundation', version 11.0.11204000

             reply	other threads:[~2014-05-25 19:04 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-25 19:04 Christopher Schmidt [this message]
2014-05-25 19:25 ` bug#17588: 24.3.91; mouse-face glitchy Eli Zaretskii
2014-05-25 20:04   ` Christopher Schmidt
2014-05-26  2:38     ` Eli Zaretskii
2014-05-26  8:35       ` Christopher Schmidt
2014-05-26 15:37         ` Eli Zaretskii
2014-05-26 20:17           ` Christopher Schmidt
2014-05-27  2:40             ` Eli Zaretskii
2014-05-27  7:21               ` Christopher Schmidt
2014-05-27 16:04                 ` Eli Zaretskii
2014-05-27 17:09                   ` Michael Heerdegen
2014-05-28 12:27                   ` Christopher Schmidt
2014-05-28 18:39                     ` Eli Zaretskii
2014-05-28 20:15                       ` Christopher Schmidt
2014-05-29 15:56                         ` Eli Zaretskii
2014-05-29 16:14                           ` Christopher Schmidt
2014-05-29 16:49                             ` Eli Zaretskii
2014-05-29 16:51                             ` Eli Zaretskii
2014-05-26 20:45       ` Michael Heerdegen
2014-05-26 21:17         ` Michael Heerdegen
2014-05-27  2:42           ` Eli Zaretskii
2014-05-27 13:09   ` martin rudalics
2014-05-27 15:33     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lhtpwuh5@ristopher.com \
    --to=ch@ristopher.com \
    --cc=17588@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).