emacs-devel
[Top][All Lists]
Advanced

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

RE: [External] : Reading text properties from a yanked text


From: Drew Adams
Subject: RE: [External] : Reading text properties from a yanked text
Date: Sat, 26 Nov 2022 23:03:53 +0000

> I'm trying to read the properties of a yanked string and I do not
> understand why I get a nil result:
> 
> 1. I evaluate the line below to get a bold "Hello" and I copy the
> result in the kill ring.
> 
> (insert (propertize "Hello" 'face 'bold))
> 
> 2. If I try to get the properties of the yanked text, I get
> nil. However, the text is displayed bold and a (text-properties-at
> (point)) returns '(face bold) when point is on the H letter.
> 
> (text-properties-at 0 "Hello")
> 
> 3. This version works as expected (but this is not what I need):
> (text-properties-at 0 (propertize "Hello" 'face 'bold))
> 
> Why do I get a nil result in case 2 (using Emacs 28.2) even though
> the text is displayed bold?

Not sure what you're asking.
But do either of these user options help?

 `yank-excluded-properties'
 `yank-handled-properties'

reply via email to

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