From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Interface of prog-prettification Date: Sun, 16 Jun 2013 11:58:48 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1371376787 4532 80.91.229.3 (16 Jun 2013 09:59:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Jun 2013 09:59:47 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 16 11:59:48 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 1Uo9kR-0001lG-9e for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2013 11:59:47 +0200 Original-Received: from localhost ([::1]:57509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uo9kR-0004bR-1L for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2013 05:59:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uo9kB-0004I8-VL for emacs-devel@gnu.org; Sun, 16 Jun 2013 05:59:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uo9kB-0007JG-6M for emacs-devel@gnu.org; Sun, 16 Jun 2013 05:59:31 -0400 Original-Received: from mail-ea0-x22e.google.com ([2a00:1450:4013:c01::22e]:55463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uo9kB-0007J4-1K for emacs-devel@gnu.org; Sun, 16 Jun 2013 05:59:31 -0400 Original-Received: by mail-ea0-f174.google.com with SMTP id o10so1172663eaj.5 for ; Sun, 16 Jun 2013 02:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ElaMBvcFmvBcrpHLVsYlDlHsVexKDCub9rnENyW1XuQ=; b=W/LjvM4DAdCNjEObsXoxBQJicxe0XAIpgrSp1QpkNW1AS21VeOA07ZuqIa55vm7U5N L8x9Zd/EGqCnMp67pB4VtphWiSwPpqcNaeiU9L2tSn2h5PcC4rbgNLGVfmHisiwtgqlB 4HSHFHoZ0cKCzQcSncmEwF6FHJRThG67EC7mNocS1o2n9QoGCQPWlbNwLiI4yCTYKlvQ aaGie8eI2A+LcmiVJgmeoSL1NpedNFdy8c65TkckYITby3Hyu4ow14U2qwtdA73yuvwh DmfwBT+Ac/PsfS3B9OcSxalyLuL9k40+kBZnJVxBPTl13sxQx80egOwjTYUaqXUTWp20 Bsjg== X-Received: by 10.15.21.78 with SMTP id c54mr11410972eeu.14.1371376770058; Sun, 16 Jun 2013 02:59:30 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Sun, 16 Jun 2013 02:58:48 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22e 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:160461 Archived-At: On Sun, Jun 16, 2013 at 11:24 AM, Ted Zlatanov wrote: > The original `perl-mode' implementation of the above said that. Well, I haven't tried having a non-ASCII keyword and prettifying it, but I would be very surprised if it didn't work. > I think (as already suggested here) that an arbitrary string > should also be supported. Yes. > The user is not supposed to extend it. I had that originally IIRC but > for simplicity we decided to make it one setting for all prog-modes. > The assumption is that if you like to prettify lambdas as symbols, you > won't mind it everywhere. That's a strange assumption for an Emacs feature ;-) > Maybe a mode load hook call to `prog-prettify-install'? I think > complicating the defcustom might be less user-friendly. Suggestions > welcome. Do you mean a hook run from prog-prettify-install? Yes, that would work. As for defcustom, agreed. > Right. I think these complications, especially the inheritance aspect, > indicate it's better to let the user decide in the load hook than to try > to provide it in a more complicated data structure. Yes. Though having these variables as user options (not necessarily defcustoms, but at the very least non-internal) would be nice. Thanks, J