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: Emanuel Berg
Subject: Re: How can I remove effects of text properties in 'before-string
Date: Sun, 22 Oct 2017 18:00:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

> 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)

I don't know what you're up to but in general
you can use `buffer-substring-no-properties'.

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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