Questions tagged [characters]

94 questions
5
votes
1 answer

Test char at point

I want to test if char at point is, let's say, "{" I found: (string= "{" (buffer-substring-no-properties (point) (+ 1 (point)))) and: (string-match-p "{" (what-cursor-position)) both working. In the sencond case, if there isn't something better,…
Gabriele
  • 1,554
  • 9
  • 21
5
votes
1 answer

What are the ?\(, ?\[, ?\{ symbols in emacs lisp?

I've came across this comment in an evil-surround issue, which stated this code: ;; use non-spaced pairs when surrounding with an opening brace (evil-add-to-alist 'evil-surround-pairs-alist ?\( '("(" . ")") ?\[ '("[" . "]") ?\{ '("{" . "}") ?\)…
ninrod
  • 1,506
  • 2
  • 13
  • 29
3
votes
3 answers

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? Examples: El Niño -> El Nino René -> Rene tåg ->…
Phoenix
  • 351
  • 1
  • 9
2
votes
0 answers

Cannot input some characters using linux compose key in Emacs GUI

I'm trying to write some exotic characters, like ĵ, ĉ or ŭ. I am using a qwerty US keyboard layout on a GNU linux machine, and I set up my compose key with setxkbmap -layout us -option compose:ralt. This works flawlessly almost everywhere, including…
chpill
  • 21
  • 1
1
vote
1 answer

How to get the character representation of an integer?

As it is well known, characters in emacs are indistinguishable from the integer number representing them, so much so that the form (eq ?A 65) returns t. Nevertheless, there are situations in which one might want to start out with an integer, such as…
Ruy
  • 839
  • 5
  • 11
1
vote
0 answers

how to turn off special character?

I am pretty new to emacs. does anyone how to turn off special character, such as 渘 ? I tried to search online but no luck. emacs 28
eric123
  • 11
  • 2
1
vote
1 answer

Emacs shows white space and newline characters

What kind of feature is this and how to disable it? I've used the wrong shortcut, but I don't remember what I pressed. When I kill the buffer and open the same file again I have those markers. The thing is global because When I reload the other…
jcubic
  • 741
  • 1
  • 4
  • 16
1
vote
1 answer

isdigit in elisp

I wanted to check that char is a digit by comparing its code with codes of 0 and 9, presuming that the digits codes are contiguous in code table: (let ((char ?\e)) (if (and (>= char ?\0) (<= char ?\9)) (message "aaa") (message…
user4035
  • 1,059
  • 13
  • 24
1
vote
1 answer

Recursion in char_charset?

I am looking at the C code for Emacs as of Emacs 26.1, file charset.c , defun char-charset (around line 2040), and file charset.h, macro CHAR_CHARSET (around line 380). I don't understand how in the world this might work. How does this not recurse…
q.undertow
  • 324
  • 1
  • 10
1
vote
0 answers

How to change comments characters in assembly mode

I am editing .s files whit an assembly-to-binary translator that does not accept ; as a comment delimiter but accept C like comments (namely // and /* ... */). I tried to modify comment-start variable locally using set-variable command but it does…
Welgriv
  • 67
  • 1
  • 9
0
votes
1 answer

Nonexistent newline on display after using outorg

I'm using outorg to convert an elisp file to an org file and then back to an elisp file via (outorg-convert-to-org) and (outorg-convert-back-to-code). When I do this conversion I notice that it looks like there is an extra newline between headlines…
Aquaactress
  • 1,453
  • 8
  • 11