aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-04-21 16:31:22 -0400
committerStefan Monnier2014-04-21 16:31:22 -0400
commitf0ffb9b76754ef7dcc4842e969aa16d451f117e9 (patch)
tree49c7b7785278e25f8eb3f799eb51331616660537
parent6709d4dab9d434dcd1d797e081dfc796b735a1ff (diff)
downloademacs-f0ffb9b76754ef7dcc4842e969aa16d451f117e9.tar.gz
emacs-f0ffb9b76754ef7dcc4842e969aa16d451f117e9.zip
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
Don't prettify a word within a symbol.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/prog-mode.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0b7de93cc02..f9d9521e412 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/prog-mode.el (prettify-symbols--compose-symbol):
4 Don't prettify a word within a symbol.
5
12014-04-20 Michael Albinus <michael.albinus@gmx.de> 62014-04-20 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if 8 * net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if
diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el
index 3b850f3305b..407466932d9 100644
--- a/lisp/progmodes/prog-mode.el
+++ b/lisp/progmodes/prog-mode.el
@@ -67,7 +67,7 @@ Regexp match data 0 points to the chars."
67 (let* ((start (match-beginning 0)) 67 (let* ((start (match-beginning 0))
68 (end (match-end 0)) 68 (end (match-end 0))
69 (syntaxes (if (eq (char-syntax (char-after start)) ?w) 69 (syntaxes (if (eq (char-syntax (char-after start)) ?w)
70 '(?w) '(?. ?\\))) 70 '(?w ?_) '(?. ?\\)))
71 match) 71 match)
72 (if (or (memq (char-syntax (or (char-before start) ?\s)) syntaxes) 72 (if (or (memq (char-syntax (or (char-before start) ?\s)) syntaxes)
73 (memq (char-syntax (or (char-after end) ?\s)) syntaxes) 73 (memq (char-syntax (or (char-after end) ?\s)) syntaxes)