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:
parent
6709d4dab9
commit
f0ffb9b767
2 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue