From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: =?iso-8859-1?Q?=AC?= notation for not? Ref: Add a couple cells to lisp-prettify-symbols-alist Date: Mon, 11 Jul 2016 09:35:07 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87r3b08fhw.fsf@lifelogs.com> References: <20160710052404.GA28783@holos.localdomain> <87oa65eczf.fsf@udel.edu> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468244183 32416 80.91.229.3 (11 Jul 2016 13:36:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2016 13:36:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 15:36:12 2016 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 1bMbNb-0005oK-RC for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2016 15:36:12 +0200 Original-Received: from localhost ([::1]:33728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMbNa-0004NK-PQ for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2016 09:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMbMv-0004Je-Gv for emacs-devel@gnu.org; Mon, 11 Jul 2016 09:35:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMbMp-0001tg-Fj for emacs-devel@gnu.org; Mon, 11 Jul 2016 09:35:28 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMbMp-0001tW-8j for emacs-devel@gnu.org; Mon, 11 Jul 2016 09:35:23 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bMbMn-0005Xl-0T for emacs-devel@gnu.org; Mon, 11 Jul 2016 15:35:21 +0200 Original-Received: from c-98-229-60-157.hsd1.ma.comcast.net ([98.229.60.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jul 2016 15:35:20 +0200 Original-Received: from tzz by c-98-229-60-157.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jul 2016 15:35:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-60-157.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:7p7m/AArSVSP54o9hKjLe9s0nPI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:205541 Archived-At: On Sun, 10 Jul 2016 17:05:04 -0400 Stefan Monnier wrote: >> Perhaps doing it how calc manages its units would be satisfactory? The >> short of it being that `math-standard-units' and user-defined >> `math-additional-units' are used to build `math-units-table'. Though, >> for units there isn't a need to blacklist, and it sounds like a good >> option to have for prettify-symbols. SM> Whether the customization specifies what to include or what to exclude, SM> there is still the issue that specific mappings could be complex SM> (currently it's only (STRING . CHAR), but it'll likely need to be SM> extended at some point such that you can additionally specify some SM> predicate to check that the mapping is valid in a given context, or even SM> to dynamically decide which mapping to use depending on context). SM> So the mappings themselves should probably be regarded as "code" rather SM> than customization, and the customization interface should just let the SM> user select which mappings to (de)activate. How about tagging each mapping? (STRING CHAR TAG1 TAG2 ...) Then the user could include or exclude by tag. It's free-form but I think it would be hard to provide a good general interface to include/exclude prettifications otherwise. Ted