From: Pontus Michael <m.pontus@gmail.com>
To: 16760@debbugs.gnu.org
Subject: bug#16760: Ellipses lose all decorative features when 'invisible' overlay starts at a point where underlying text changes its 'face' property.
Date: Sat, 15 Feb 2014 03:40:36 +0400 [thread overview]
Message-ID: <CAPpfmHLYCX4_rhRbOrZO5Xu_gGQ8mhbsreLapJdpxm_LyUxKhw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1788 bytes --]
I am able to reproduce this issue running emacs -Q with "GNU Emacs
24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.6.3)".
I've wrote a snippet that will allow me to demonstrate this issue:
(let ((str (concat (propertize "red" 'face '((:foreground "red")))
(propertize "green" 'face '((:foreground "green")))
(propertize "blue" 'face '((:foreground "blue")))))
(printer (lambda (offset)
(let* ((pos1 (+ offset (point)))
(pos2 (+ 1 (length str) pos1)))
(insert str ?\s str ?\n)
(overlay-put (make-overlay pos1 (+ 3 pos1))
'face '((:inverse-video t)))
(overlay-put (make-overlay pos2 (+ 3 pos2))
'invisible 'outline)))))
(with-current-buffer (get-buffer-create "*test*")
(setq buffer-invisibility-spec '((outline . t)))
(text-scale-set 4)
(display-buffer (current-buffer))
(erase-buffer)
(mapc printer '(2 3 4))))
After running this code you will be able to see, in a new buffer, 3 lines
of 2 words, all words are the same, each line features three-letter long
overlay over each of the words, highlighting letters underneath them on
left side, and hiding them behind ellipses on right side.
Whenever an overlay spans from a point where there's a change to 'face'
text-property, produced ellipsis doesn't adopt face decoration of neither
side. Furthermore, ellipsis part of the buffer appears to ignore current
text-scale setting, which is being set to 4 for temporary buffer in my
example.
Thank you for your attention.
All corrections that may help me improve my further reports are welcomed.
[-- Attachment #2: Type: text/html, Size: 2109 bytes --]
next reply other threads:[~2014-02-14 23:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 23:40 Pontus Michael [this message]
2016-02-04 21:05 ` bug#16760: Ellipses lose all decorative features when 'invisible' overlay starts at a point where underlying text changes its 'face' property Marcin Borkowski
2016-02-04 21:20 ` Eli Zaretskii
2016-02-07 20:43 ` Marcin Borkowski
2016-02-07 21:01 ` Eli Zaretskii
2016-02-07 22:24 ` Marcin Borkowski
2016-02-07 22:34 ` Stephen Berman
2016-02-08 3:29 ` Eli Zaretskii
2016-02-12 20:15 ` Marcin Borkowski
2016-02-12 20: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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPpfmHLYCX4_rhRbOrZO5Xu_gGQ8mhbsreLapJdpxm_LyUxKhw@mail.gmail.com \
--to=m.pontus@gmail.com \
--cc=16760@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.