emacs-devel
[Top][All Lists]
Advanced

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

Re: read-string-from-buffer: Removing text properties


From: Eli Zaretskii
Subject: Re: read-string-from-buffer: Removing text properties
Date: Fri, 08 Mar 2024 15:08:00 +0200

> From: Thanos Apollo <public@thanosapollo.org>
> Date: Fri, 08 Mar 2024 13:58:54 +0200
> 
> I'm trying to use read-string-from-buffer & I have found some
> interesting interactions that it has with text properties.
> 
> Example:
> 
> (read-string-from-buffer "Prompt" (propertize "warning face" 'face 'warning))
> 
> ;; Returns: #("warning face" 0 12 (face warning))
> 
> Should it not read-string-from-buffer behave similarly to read-string,
> and just return a string?

What read-string does is AFAIU controlled by the variable
minibuffer-allow-text-properties, so it doesn't always discard the
text properties.



reply via email to

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