[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symb
From: |
Stefan Monnier |
Subject: |
Re: [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symbols-mode |
Date: |
Fri, 28 Aug 2015 12:45:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> + (if (fboundp 'add-function)
> + (add-function :override (local 'prettify-symbols-compose-predicate)
> + #'tex--prettify-symbols-compose-p)
> + (set (make-local-variable 'prettify-symbols-compose-predicate)
> + #'tex--prettify-symbols-compose-p)))
If you compile this code in Emacs-24.1 and then run it in Emacs-24.4
it's signal an error, because add-function is a macro that will not have
been expanded.
I recently solved the same problem in elpa/packages/dts-mode with
dts--using-macro.
Stefan
- Re: [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symbols-mode,
Stefan Monnier <=