Quantcast
Channel: Test char at point - Emacs Stack Exchange
Viewing all articles
Browse latest Browse all 2

Test char at point

$
0
0

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, I'd like to hide the message in the echo area (minibuffer).

Some hint?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images