From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Tassilo Horn <tsdh@gnu.org>
Subject: Re: [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symbols-mode
Date: Fri, 28 Aug 2015 12:45:38 -0400 [thread overview]
Message-ID: <jwv613zs6r8.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1ZVFQz-0006Kf-Lb@vcs.savannah.gnu.org> (Tassilo Horn's message of "Fri, 28 Aug 2015 08:54:53 +0000")
> + (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
next parent reply other threads:[~2015-08-28 16:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20150828085448.24208.47194@vcs.savannah.gnu.org>
[not found] ` <E1ZVFQz-0006Kf-Lb@vcs.savannah.gnu.org>
2015-08-28 16:45 ` Stefan Monnier [this message]
2015-08-31 9:34 ` [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symbols-mode Tassilo Horn
2015-08-31 17:54 ` Stefan Monnier
2015-09-01 6:18 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv613zs6r8.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.