GNU bug report logs - #13011
24.2; Text flickering moving cursor with box around text enabled

Previous Next

Package: emacs;

Reported by: mario giovinazzo <mario.giovinazzo <at> virgilio.it>

Date: Tue, 27 Nov 2012 16:34:01 UTC

Severity: minor

Tags: fixed

Merged with 13130, 17612

Found in versions 24.2, 24.2.90, 24.3

Fixed in version 28.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #72 received at 13011 <at> debbugs.gnu.org (full text, mbox):

From: Alexandre Adolphe <alexandre.adolphe <at> gmail.com>
To: 13011 <at> debbugs.gnu.org
Subject: Patch: Text flickering moving cursor with box around text enabled
Date: Fri, 19 Jan 2018 19:08:13 +0100
[Message part 1 (text/plain, inline)]
Hi,

I run into this issue so I tried to fix it to go into the emacs core code.
I followed the suggestion made in the bug and set box attribute to be
in the form (width . height). I tested it on windows and gnu/linux system
and on a mac os virtual machine but I am not sure to have tested all the
possible drawing as there are plenty of them. I tested both text box
and image relief.
I would appreciate that other people (especially those who use CAIRO
and those under real os x machine) confirm that the result is correct.

My simple test script :
----
(defun test_box_around_text (s)
  (save-excursion
    (goto-char (point-min))
    (insert "ABCDE\nABCDE\nABCDE\n")
    (put-text-property 8 11 'font-lock-face `(:box (:line-width ,s :color
"red")))
    ;; (put-text-property 8 11 'font-lock-face `(:box (:line-width ,s
:color "white" :style released-button)))
    ))

(test_box_around_text 4)
(test_box_around_text -4)
(test_box_around_text '(4 . -4))
(test_box_around_text '(-4 . 4))
(test_box_around_text '(-4 . -4))
(test_box_around_text '(4 . 0))
(test_box_around_text '(0 . 4))
(test_box_around_text '(4 . 1))
(test_box_around_text '(1 . 4))
(test_box_around_text '(-4 . 1))
(test_box_around_text '(1 . -4))

(save-excursion
    (goto-char (point-min))
    (insert-image
     (create-image
      "splash.svg" nil nil :relief 12)))
----

Thanks in advance,
Alexandre
[Message part 2 (text/html, inline)]
[0001-Allow-negative-line-width-for-box-face-attribute.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 49 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.