A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg01698.html below:

Re: Reading text properties from a yanked text

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? 



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4