1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):

Don't prettify a word within a symbol.
This commit is contained in:
Stefan Monnier 2014-04-21 16:31:22 -04:00
parent 6709d4dab9
commit f0ffb9b767
2 changed files with 6 additions and 1 deletions

View file

@ -67,7 +67,7 @@ Regexp match data 0 points to the chars."
(let* ((start (match-beginning 0))
(end (match-end 0))
(syntaxes (if (eq (char-syntax (char-after start)) ?w)
'(?w) '(?. ?\\)))
'(?w ?_) '(?. ?\\)))
match)
(if (or (memq (char-syntax (or (char-before start) ?\s)) syntaxes)
(memq (char-syntax (or (char-after end) ?\s)) syntaxes)