Questions tagged [characters]
A “character” in Emacs Lisp is nothing more than an integer. In other words, characters are represented by their character codes. A "character" is a different type from a "string".
102 questions
0 votes
0 answers
39 views
Has anyone publicly experimented with implementing a distinct character type in GNU Emacs?
XEmacs 20 made character a distinct type from integer. Has anyone publicly experimented with doing something along the same lines in GNU Emacs ? (By "publicly experimented", I mean posted ...
2 votes
3 answers
140 views
Can I modify a character so forward-word recognizes it as a non-limiting word constituent?
I have a keyboard layout that has keys that insert characters such as ∀, which I would like to define abbrevs for, but I can't. I tracked down the cause and it is that character ∀ is not recognized by ...
1 vote
1 answer
53 views
How to make non-Latin letters part of a word
I have the following text in a (fundamental-mode) buffer: helloαworld and forward-word stops both before and after the alpha: |helloαworld hello|αworld helloα|world helloαworld| However, when I do C-...
0 votes
0 answers
59 views
How to treat ' (single-quote) as an ordinary character in HTML mode?
In a mode derived from html-mode, I want to remove the property that ' opens a quote. I found character properties in the manual, but the following in the .emacs init file does not work: (define-...
2 votes
1 answer
58 views
Highlight prettified code
is there a way of highlighting a prettified phrase? Something like: (push '("\\qquad " . "⧢") prettify-symbols-alist) (highlight-phrase "⧢" 'shadow) (highlight-...
1 vote
0 answers
64 views
print hex-code in string
I hope "*ielm*"/eval-print-last-sexp print "\x80", but the result is ELISP> "😅\x80" "😅\200" ; Unicode characters should be displayed normally. My current ...
1 vote
1 answer
62 views
The number of characters in one line is very different from `window-width`
In my environment, I can only enter 130 single-byte characters in one line in the actual buffer while window-width is returning 160. Apparently window-width is returning columns, not characters. Is ...
5 votes
3 answers
856 views
Convert accented characters to non-accented counterparts (character folding)
Is there a way for lisp to convert a string with accented characters into a non-accented counterpart without mapping each and every character or is creating a manual map the only way to achieve this? ...