From: Mark Oteiza <mvoteiza@udel.edu>
Date: Thu, 21 Jul 2016 20:36:50 +0000 (-0400)
Subject: ;Partially revert 2649105a
X-Git-Tag: emacs-26.0.90~1840^2~24
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b7651649c2b1321a0c510116c1ac2442599d9a2e;p=emacs.git

;Partially revert 2649105a

* lisp/textmodes/tex-mode.el (tex-common-initialization): Use
setq-local to modify prettify-symbols-compose-predicate.
---

diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 710899fa30d..701d40912ca 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1259,8 +1259,7 @@ Entering SliTeX mode runs the hook `text-mode-hook', then the hook
 		(font-lock-unfontify-region-function
 		 . tex-font-lock-unfontify-region)))
   (setq-local prettify-symbols-alist tex--prettify-symbols-alist)
-  (add-function :override (local 'prettify-symbols-compose-predicate)
-                #'tex--prettify-symbols-compose-p)
+  (setq-local prettify-symbols-compose-predicate #'tex--prettify-symbols-compose-p)
   (setq-local syntax-propertize-function
 	      (syntax-propertize-rules latex-syntax-propertize-rules))
   ;; TABs in verbatim environments don't do what you think.