From: Dmitry Gutov <dgutov@yandex.ru>
To: 19307@debbugs.gnu.org
Subject: bug#19307: 24.4.51; Ellipsis created with `invisible' removes highlighting from overlay after-string after it
Date: Mon, 08 Dec 2014 17:33:36 +0200 [thread overview]
Message-ID: <86d27uw3zj.fsf@yandex.ru> (raw)
In the example below, the `after-string' value is propertized with a
face.
But as long as there is ellipsis at its beginning, the after-string is
rendered using the default face.
(defun test ()
(interactive)
(ignore-errors
(kill-buffer "test"))
(pop-to-buffer "test")
(add-to-invisibility-spec '(... . t))
(insert (propertize "foo" 'invisible '...))
(let ((ov (make-overlay (point) (point))))
(overlay-put ov 'invisible t)
(overlay-put ov 'window (selected-window))
(overlay-put ov 'after-string
(propertize "xxx" 'face 'highlight))))
And here's a somewhat related scenario, with a surprising result:
(defun testt ()
(interactive)
(ignore-errors
(kill-buffer "testt"))
(pop-to-buffer "testt")
(add-to-invisibility-spec '(... . t))
(insert " ")
(let ((ov (make-overlay (1- (point)) (point))))
(overlay-put ov 'invisible t)
(overlay-put ov 'window (selected-window))
(overlay-put ov 'after-string
(propertize "xxx" 'face 'highlight)))
(insert (propertize "foo" 'invisible '...)))
If I modify the scenario to make the overlay empty (and maybe omit
inserting the space at the beginning, though this makes no difference),
then "xxx" is displayed and even highlighted as expected.
In GNU Emacs 24.4.51.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2014-11-28 on axl
Repository revision: 6b765b8facbdbb03f28028007885236601652515
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04.1 LTS
next reply other threads:[~2014-12-08 15:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-08 15:33 Dmitry Gutov [this message]
[not found] ` <handler.19307.B.1418052841706.ack@debbugs.gnu.org>
2015-02-02 3:47 ` bug#19307: Acknowledgement (24.4.51; Ellipsis created with `invisible' removes highlighting from overlay after-string after it) Dmitry Gutov
2015-02-02 16:29 ` bug#19307: 24.4.51; Ellipsis created with `invisible' removes highlighting from overlay after-string after it Eli Zaretskii
2015-02-03 3:33 ` Dmitry Gutov
2015-02-03 18:54 ` Eli Zaretskii
2015-02-03 20:30 ` Dmitry Gutov
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=86d27uw3zj.fsf@yandex.ru \
--to=dgutov@yandex.ru \
--cc=19307@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).