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: Interface of prog-prettification Date: Mon, 17 Jun 2013 02:25:08 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: 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 1371450329 29384 80.91.229.3 (17 Jun 2013 06:25:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2013 06:25:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 08:25:29 2013 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 1UoSsa-0001xn-Cs for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2013 08:25:28 +0200 Original-Received: from localhost ([::1]:35942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoSsZ-0007cL-SN for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2013 02:25:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoSsX-0007b9-CV for emacs-devel@gnu.org; Mon, 17 Jun 2013 02:25:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoSsV-0005KG-Jb for emacs-devel@gnu.org; Mon, 17 Jun 2013 02:25:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoSsV-0005K2-Dw for emacs-devel@gnu.org; Mon, 17 Jun 2013 02:25:23 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UoSsR-0001fU-4e for emacs-devel@gnu.org; Mon, 17 Jun 2013 08:25:19 +0200 Original-Received: from 11.79-161-196.customer.lyse.net ([79.161.196.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jun 2013 08:25:19 +0200 Original-Received: from tzz by 11.79-161-196.customer.lyse.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jun 2013 08:25:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 11.79-161-196.customer.lyse.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.130008 (Ma Gnus v0.8) Emacs/24.3.50 (darwin) Cancel-Lock: sha1:LvV3Jvnv8gNlGLnl0b6ACkeOExI= 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.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:160489 Archived-At: On Sun, 16 Jun 2013 21:00:03 -0400 Stefan Monnier wrote: >>> Oh, I hadn't noticed you made prog-prettify-symbols into a defcustom. >>> I think that's a mistake. >> Agreed about defcustom, but allowing the user to extend it (via lisp >> code) seems useful. SM> That would be OK, indeed. Maybe prog-prettify-install should add to SM> prog-prettify-symbols-alist rather than just set it. SM> Or maybe we should just throw away prog-prettify-symbols-alist and pass SM> the alist to prog-prettify-font-lock-symbols-keywords instead. Perhaps it's for lack of coffee, but I am not sure what you're suggesting. Could you show the user-level interface (defcustom or whatever) and an example of how `emacs-lisp-mode' would use the facility? Ted