help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I remove effects of text properties in 'before-string


From: Amos Bird
Subject: Re: How can I remove effects of text properties in 'before-string
Date: Sun, 22 Oct 2017 15:43:42 +0800
User-agent: mu4e 0.9.19; emacs 25.3.1


I've also post a question at

https://emacs.stackexchange.com/questions/36328/how-can-i-eliminate-the-side-effect-of-left-margin

with some images for better description.


Amos Bird <amosbird@gmail.com> writes:

Hi there,

emacs -Q

(set-window-margins (get-buffer-window) 20 0)
(overlay-put (make-overlay (point) (point)) 'before-string (propertize "."
'display `((margin left-margin) ,"Hi there!")))
(hl-line-mode)

The string "Hi there!" is also highlighted. How can I disable that?

regards,


--
Amos Bird
amosbird@gmail.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]