From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: random color of variables in programming languages Date: Thu, 12 Dec 2013 15:21:23 +0000 Message-ID: References: <87txefid7c.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1386861704 14243 80.91.229.3 (12 Dec 2013 15:21:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2013 15:21:44 +0000 (UTC) Cc: help-gnu-emacs To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 12 16:21:47 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Vr85B-0001bY-0w for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Dec 2013 16:21:45 +0100 Original-Received: from localhost ([::1]:37153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr85A-0008WD-Ik for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Dec 2013 10:21:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr84v-0008W3-F7 for help-gnu-emacs@gnu.org; Thu, 12 Dec 2013 10:21:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vr84q-0000Y0-Jl for help-gnu-emacs@gnu.org; Thu, 12 Dec 2013 10:21:29 -0500 Original-Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:36521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr84q-0000Xu-Cv for help-gnu-emacs@gnu.org; Thu, 12 Dec 2013 10:21:24 -0500 Original-Received: by mail-we0-f172.google.com with SMTP id w62so585141wes.17 for ; Thu, 12 Dec 2013 07:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=FLFIlns6SxN6BtuVJUicItWF9ZYn0ZxMn+vuX9O/hIw=; b=JvxTakJmhGXrh/ev0SEKhC4lye9sws43oY1WnaKWLOXfqSGXv7BkTrPO88IchNB2+X OvNjWt3n+Zbt9++8bEEymAT5sEEoodBb4wLCLg5wJkDC6l518+70Vcvi3KEeZsM9n/3X mt9HHQ72tIVR3hrTS7d4OJ4Nf8IMAbnmwvYro0IYbNO6tbk/kTZfAivOfrcnaA+rrQEm p1RQ0w+IEenGGpTAhxzB6Nf/OZD1EH1UoSYLd9cpiyyPVyRCvYqj54lheZ3WHVXJpO8V rErnZZv570AX0OW7w9KrIgqD7Kq3XIHCrWT9NASIX1dGakf0vNEy3Sk7kE1nNtqBBj4k DkHg== X-Received: by 10.180.93.8 with SMTP id cq8mr30231300wib.38.1386861683165; Thu, 12 Dec 2013 07:21:23 -0800 (PST) Original-Received: by 10.194.44.6 with HTTP; Thu, 12 Dec 2013 07:21:23 -0800 (PST) In-Reply-To: <87txefid7c.fsf@nl106-137-194.student.uu.se> X-Google-Sender-Auth: WnqyxrxIYdPuWSTCA7WGYY8fAME X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22c X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94953 Archived-At: On Wed, Dec 11, 2013 at 4:06 PM, Emanuel Berg wrote: > I don't know. That seems like a cool idea though. Then > you would see (i.e., not read) all the occurrences of > that variable at once. However I don't know how it > would work in practice. I've used it within kdevelop and I have to say it takes a few to get used to, but then it is really cool. > If you were to put it up, I wouldn't recommend random > colors, instead you could use the variable *name* (the > letters) as function input to be mapped to colors: the > first letter - the ASCII position, "normalized" - could > be red, the second - same for green - etc. > Using the variable name is a good idea, even if names could easily produce a clash. However, any suggestion on where to start (in elisp code) for variable font face? Thanks, Luca