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: =?windows-1252?Q?=AC?= notation for not? Ref: Add a couple cells to lisp-prettify-symbols-alist Date: Sun, 10 Jul 2016 17:05:04 -0400 Message-ID: References: <20160710052404.GA28783@holos.localdomain> <87oa65eczf.fsf@udel.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468184750 2730 80.91.229.3 (10 Jul 2016 21:05:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 21:05:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 10 23:05:40 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 1bMLv1-0007tY-Dm for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2016 23:05:39 +0200 Original-Received: from localhost ([::1]:56875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMLv0-0004Rg-Fs for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2016 17:05:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMLuu-0004Cc-AB for emacs-devel@gnu.org; Sun, 10 Jul 2016 17:05:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMLuo-0006i0-AZ for emacs-devel@gnu.org; Sun, 10 Jul 2016 17:05:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:60959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMLuo-0006hg-6G for emacs-devel@gnu.org; Sun, 10 Jul 2016 17:05:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CYDQA731xV/3mcpUVcDoMChALIYAQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBbM/gUUjgzpaIoJ4AQEB X-IPAS-Result: A0CYDQA731xV/3mcpUVcDoMChALIYAQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBbM/gUUjgzpaIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="247344498" Original-Received: from 69-165-156-121.dsl.teksavvy.com (HELO pastel.home) ([69.165.156.121]) by ironport2-out.teksavvy.com with ESMTP; 10 Jul 2016 17:05:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 022B964151; Sun, 10 Jul 2016 17:05:04 -0400 (EDT) In-Reply-To: <87oa65eczf.fsf@udel.edu> (Mark Oteiza's message of "Sun, 10 Jul 2016 11:20:36 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:205522 Archived-At: > 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. Whether the customization specifies what to include or what to exclude, there is still the issue that specific mappings could be complex (currently it's only (STRING . CHAR), but it'll likely need to be extended at some point such that you can additionally specify some predicate to check that the mapping is valid in a given context, or even to dynamically decide which mapping to use depending on context). So the mappings themselves should probably be regarded as "code" rather than customization, and the customization interface should just let the user select which mappings to (de)activate. Stefan