From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master ff2f35f: Add TeX defaults for prettify-symbol-mode Date: Fri, 21 Aug 2015 18:30:41 +0200 Message-ID: <8737zc4n9q.fsf@gnu.org> References: <20150821074038.9159.7628@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440174665 13544 80.91.229.3 (21 Aug 2015 16:31:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2015 16:31:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 21 18:30:54 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 1ZSpDS-0007Cs-J1 for ged-emacs-devel@m.gmane.org; Fri, 21 Aug 2015 18:30:54 +0200 Original-Received: from localhost ([::1]:42789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSpDR-0005Xy-Nj for ged-emacs-devel@m.gmane.org; Fri, 21 Aug 2015 12:30:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSpDO-0005Xi-C9 for emacs-devel@gnu.org; Fri, 21 Aug 2015 12:30:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSpDJ-0006V1-BQ for emacs-devel@gnu.org; Fri, 21 Aug 2015 12:30:50 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:35988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSpDI-0006Ut-Rr for emacs-devel@gnu.org; Fri, 21 Aug 2015 12:30:45 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B677020568 for ; Fri, 21 Aug 2015 12:30:44 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 21 Aug 2015 12:30:44 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=xNrWrf3lq21p0ETubrzGVuFTbYg=; b=Q/Ixy qlqweR94QACOQPJ+E2JLoAF6jW2zYgnYTVg7r5JbeRZsU78A+nunnNfoY+QqFfcq pEaczbrIHTZK3jNeHmfiMBfqSJw2uK4w9/5k1uhAm4RI7RkKVIeH0Tepb/rX3Y7M dC5Wxdpd9A7OarTZ4UNNxN7zsNITYsmKJP2Fbc= X-Sasl-enc: W02heO5h+DM5Wom0/+NIP7UU8R7pVxCvZ7m/hX7LjYkk 1440174644 Original-Received: from thinkpad-t440p (unknown [2.163.198.26]) by mail.messagingengine.com (Postfix) with ESMTPA id F39D26800DE; Fri, 21 Aug 2015 12:30:43 -0400 (EDT) Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Fri, 21 Aug 2015 09:35:11 -0400") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 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:189050 Archived-At: Stefan Monnier writes: >> + (setq-local prettify-symbols-compose-predicate #'tex--prettify-symbols-compose-p) > > Oh, and we should use add-function here. I don't understand. Should `prettify-symbols-compose-predicate' not be buffer-local by default but instead one should use (add-function :override (local 'prettigy-symbols-compose-predicate) #'tex--prettify-symbols-compose-p) to override it on a per-buffer basis? Bye, Tassilo