From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tianxiang Xiong Newsgroups: gmane.emacs.devel Subject: Re: Proposal: font lock for `describe-variable` Date: Mon, 26 Sep 2016 21:09:38 -0700 Message-ID: <1474949378.32234.5.camel@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1474949503 15183 195.159.176.226 (27 Sep 2016 04:11:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 04:11:43 +0000 (UTC) To: monnier@iro.umontreal.ca, "emacs-devel@gnu.org" , clement.pit@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 27 06:11:39 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bojjk-0001G9-W9 for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2016 06:11:21 +0200 Original-Received: from localhost ([::1]:47883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bojji-0006Tx-Jg for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2016 00:11:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bojjB-0006Ts-RK for emacs-devel@gnu.org; Tue, 27 Sep 2016 00:10:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bojj8-0000aq-HS for emacs-devel@gnu.org; Tue, 27 Sep 2016 00:10:45 -0400 Original-Received: from mail-pf0-f169.google.com ([209.85.192.169]:34684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bojj8-0000aF-Ax for emacs-devel@gnu.org; Tue, 27 Sep 2016 00:10:42 -0400 Original-Received: by mail-pf0-f169.google.com with SMTP id l25so1060277pfb.1 for ; Mon, 26 Sep 2016 21:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:mime-version :content-transfer-encoding; bh=TnJCM6aQQXsi3K0ytcsYnjhcO2DX+XsE/eXsilyb+es=; b=lPvsvkbSlUGSMSr7uWjN1cgA+a5zAT0TgITm+HoDcptvlk7yMf84gEZh7Q7pGVWR8p MxUCpo76ypzO9GmpkMVwoW6ar+B/OcimJJZFKhPNpPS/dOAPAyyhQIfiHoSsFKTd/7Bn SL9bCPFAIZftCiQyMMrmlC2kemadVUYY3jzEC7WwG57HVBYXhVypAWwb3vmljm8pfXrD RUKXX82kNQIaAfAWSx6Ov/8Q++HkywSjt3FJMtW+Kkw2IxNfiyN1MFwUiaSCdjO7wU6Q pyw6/vdj+KrlwoWUpRagA4tOYOOBqWUbxHtqEyKOSj/Oni7s8TKZAMcHx4fxcrRvwJQI ZAuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :mime-version:content-transfer-encoding; bh=TnJCM6aQQXsi3K0ytcsYnjhcO2DX+XsE/eXsilyb+es=; b=FPUy5uWIf7ZYAX2vIppaqXJEFiQjcSkOc822uf4Y4PKK/F88wMbm8dAcfoMaDjyc7d GuQOWHrli5wD+lQKEoosMkI6kr/+5DxysCHw/YSC3CYrLF0Y7rS+/EBnm+ZzoOFldFdj XS+/aibW9GOMnQxcbkb8/X2X9qU+4fPYOkltMJ4OGaTk8xe/W1CcUpKDi7K29okomvxz wuq1JCu/69vbEa8jjQdGEirijQgMITfpOVBfh9ish55e5yDeYNMzvmhH2pA56z4nzI3f /hTRsVouACE/Ucaee9nCP7+slWjjhlFFquKxNINgnujt+z2WENQbISrk43qWNFYyonBw 6KsQ== X-Gm-Message-State: AE9vXwOYnOZkbSIG+2PM2N5T4G1RrX+oI+S/MUEWl991Fs7s8vBUsv5ZmdLATtjq1rNJKw== X-Received: by 10.98.86.11 with SMTP id k11mr43224776pfb.182.1474949380117; Mon, 26 Sep 2016 21:09:40 -0700 (PDT) Original-Received: from txx (c-73-189-44-103.hsd1.ca.comcast.net. [73.189.44.103]) by smtp.googlemail.com with ESMTPSA id an11sm421381pac.26.2016.09.26.21.09.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Sep 2016 21:09:39 -0700 (PDT) In-Reply-To: jwvmvivznuc.fsf-monnier+gmane.emacs.devel@gnu.org X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.169 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:207825 Archived-At: Would anyone care to take a look at the revised version of the proposal? It's in another e-mail on this thread. There are still a few kinks, such as: - How to properly handle large values. Right now we have a policy of not pretty-printing if the print representation is above some arbitrary value; should we make use of `print-length` and `print-level` to ensure that the print representation is always "reasonable"? Or is `describe- variable` expected to always show the whole value? - Handling sequences that cannot be operated on with standard sequence functions like "length", e.g. rings. This one was a surprise, but should not be too hard to fix. - Syntax tables. For some reason, syntax table print in front of the "Its value is:" prompt; I've yet to figure out why. Thanks, TX