Questions tagged [text-properties]
is for any text property, such as `face`, that Emacs can associate with text. Emacs moves, copies, or displays the text using the text properties, which are specified as name-value pairs along with the text in a special Lisp structure. Emacs uses a special read and print syntax for text properties.
147 questions
1 vote
2 answers
315 views
Display ANSI color in the echo area
I want to run a program and display its output in the echo area (via process-lines, likely), with ANSI-color escape sequences translated into actual colors. The problem is, I can translate escape ...
2 votes
1 answer
165 views
Deleting lines in an editable occur buffer
The Emacs occur buffer is editable, but it does not make it easy to delete lines. One normally gets something like this: 2 matches for "Wyk" in buffer: diary 59:%%(diary-anniversary 5 ...
5 votes
1 answer
304 views
How can I detect when emacs is dictation safe?
Longer version of question: how can I efficiently detect and indicate when emacs is dictation safe? By "dictation safe", I really mean "when can type random printable ASCII characters ...
0 votes
1 answer
44 views
How can I transform the evil-ex-history variable to enable the extraction of search and replace strings using mapcar?
When I try to use a mapcar to extract the strings like (mapcar 'car evil-ex-history) it creates an error because of the # character preceding the list. Copying the expression, deleting the # character ...
0 votes
1 answer
66 views
Using query-replace to add text properties to replacement strings in Emacs
I'm trying to use query-replace in Emacs to replace a string with another string that has specific text properties. Specifically, in this example, I want to replace occurrences of "foo" with ...
0 votes
1 answer
56 views
Show a highly visual indicator for consecutive newlines
The context I'm editing some text files that contain paragraphs of text. Some of these paragraphs are not correctly separated (paragraphs are separated with two newlines), so I need to manually edit ...
1 vote
1 answer
158 views
How to return "string" after changing it's text properties?
When using the propertize function alone on an entire string, it works. How to return a string, after changing its different sections separately with add-face-text-property (probably later repeatedly ...
1 vote
1 answer
97 views
Searching for text fragments by character text properties
The text to be processed has special words marked with a special font. The required text is copied to the clipboard with the mouse (from firefox). The text is pasted into the clipboard emacs("...