From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symbols-mode Date: Fri, 28 Aug 2015 12:45:38 -0400 Message-ID: References: <20150828085448.24208.47194@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440780407 17718 80.91.229.3 (28 Aug 2015 16:46:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 16:46:47 +0000 (UTC) Cc: Tassilo Horn To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 28 18:46:36 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZVMnU-0001Ab-0v for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 18:46:36 +0200 Original-Received: from localhost ([::1]:48903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVMnT-00086k-7p for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 12:46:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVMn2-000867-Dx for emacs-devel@gnu.org; Fri, 28 Aug 2015 12:46:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVMmz-0000BR-6a for emacs-devel@gnu.org; Fri, 28 Aug 2015 12:46:08 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:51579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVMmz-0000B4-29; Fri, 28 Aug 2015 12:46:05 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id C237D9C1AD; Fri, 28 Aug 2015 12:46:04 -0400 (EDT) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 2AB871E5B96; Fri, 28 Aug 2015 12:45:39 -0400 (EDT) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 0CB90B4288; Fri, 28 Aug 2015 12:45:39 -0400 (EDT) In-Reply-To: (Tassilo Horn's message of "Fri, 28 Aug 2015 08:54:53 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.698, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00, SUBJ_HAS_UNIQ_ID 1.12) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189278 Archived-At: > + (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