all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Replacing spec of display text property uses wrong when set as before-string or after-string property of an overlay
@ 2022-05-10 14:37 Akib Azmain Turja
  2022-05-10 16:18 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Akib Azmain Turja @ 2022-05-10 14:37 UTC (permalink / raw
  To: emacs-devel

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


Here is an example code:

------------
(let ((txt-disp (concat " " (propertize "_" 'display "foobar") " "))
      (ov (make-overlay (point-min) (point-max))))
  (overlay-put ov 'before-string
	       (propertize txt-disp 'face
		           `(:weight bold :foreground "red"
                                     :background "yellow"))))

;; To remove the overlay call `delete-all-overlays`.
------------

After executing the above " foobar " should appear at the beginning of
buffer with red foreground and yellow background.  But the "foobar" part
doesn't use any color (i.e uses the face of the real text at the
beginning of buffer).  This doesn't happen when the text is inserted.
Is it a bug?

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-10 16:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-10 14:37 Replacing spec of display text property uses wrong when set as before-string or after-string property of an overlay Akib Azmain Turja
2022-05-10 16:18 ` Eli Zaretskii

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.