From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonas Bernoulli Newsgroups: gmane.emacs.bugs Subject: bug#13156: dedicated face for parentheses in lisp modes Date: Wed, 19 Dec 2012 16:46:16 +0100 Message-ID: <877goe6o53.fsf@bernoul.li> References: <87ip87xy2s.fsf@bernoul.li>, NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355932025 12684 80.91.229.3 (19 Dec 2012 15:47:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2012 15:47:05 +0000 (UTC) Cc: 13156@debbugs.gnu.org To: "Stefan Monnier" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 16:47:20 2012 Return-path: Envelope-to: geb-bug-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 1TlLrb-0000Va-J8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 16:47:19 +0100 Original-Received: from localhost ([::1]:53020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlLrO-0006Li-4X for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 10:47:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlLrK-0006JL-Ev for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 10:47:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlLrI-0004tx-Hm for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 10:47:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlLrI-0004to-CA for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 10:47:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TlLrK-00076i-BO for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 10:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jonas Bernoulli Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Dec 2012 15:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13156-submit@debbugs.gnu.org id=B13156.135593199127281 (code B ref 13156); Wed, 19 Dec 2012 15:47:02 +0000 Original-Received: (at 13156) by debbugs.gnu.org; 19 Dec 2012 15:46:31 +0000 Original-Received: from localhost ([127.0.0.1]:50969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TlLqo-00075x-5o for submit@debbugs.gnu.org; Wed, 19 Dec 2012 10:46:30 -0500 Original-Received: from mail-ea0-f175.google.com ([209.85.215.175]:58142) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TlLqi-00075b-Ve for 13156@debbugs.gnu.org; Wed, 19 Dec 2012 10:46:26 -0500 Original-Received: by mail-ea0-f175.google.com with SMTP id h11so863402eaa.20 for <13156@debbugs.gnu.org>; Wed, 19 Dec 2012 07:46:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:references:user-agent :in-reply-to:date:message-id:mime-version:content-type; bh=2ZIQwW3cpc1Uf/YioAfw0vyJfR3/25z6hTUv3Dct0bM=; b=UQgzpZj1GOE021/VASMFwhyzRKr42izI0AltadUyDXnklsgae8O3qmQHLska7QX+0J YFi+9w/27WBW4OgsWiu3eGjBIDYZhv3RFgZH29iMs05lXItGYwxC0KCHKAiAneqmYMr6 mOoxz3d2n15+kw82H0khDD/UsDkSzixMvQLYb/HXhAakiyTQHOqrLvuFawwW7cALgbhT ThE1Npa7ydo8eaNVlrzWrbzbLV3OzgOO/meTLcCpRMqm7yVPOq+f4SCnMo53U/M2McHV c3IoJQIbICvJNa7wNN/d7s+hIWd4jU57rEmMIrlxSeBT/scWjyibQMt5tX0ohdCDZBXi kpCA== X-Received: by 10.14.173.69 with SMTP id u45mr15171543eel.21.1355931978874; Wed, 19 Dec 2012 07:46:18 -0800 (PST) Original-Received: from lem (178-83-148-79.dynamic.hispeed.ch. [178.83.148.79]) by mx.google.com with ESMTPS id 6sm9878704eea.3.2012.12.19.07.46.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Dec 2012 07:46:18 -0800 (PST) User-agent: mu4e 0.9.9.5-dev4; emacs 24.3.50.1 In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68737 Archived-At: Stefan Monnier writes: >> Could you please add a `paren-face' that could be used in lisp modes >> (and possibly others) to dim (or highlight) parentheses. I am currently >> using the attached library to do this but think it would make sense if >> this functionality was built-in. > > I don't think it's sufficiently useful in general. What about all the Emacs users that are scared of lisp "because of all the parens"? Dimming them might reduce the shock :-) >> Being very simple `parenface.el' just unconditionally adds an additional >> keyword to `[lisp|scheme]-font-lock-keywords' when loaded. > > It could use font-lock-add-keywords. That's what I was going to do. > BTW, if all parens are displayed the same, then you can also use the > buffer-display-table. Since you are suggesting this I assume that doesn't mess with highlighting with highlighting matching parens. So I will try that too. >> If this has to be a mode then I am happy to write it. I haven't done >> so yet because `parenface.el' works fine for me and because I would >> actually prefer (1). > > Having it as a separate mode would make more sense, yes. If you don't change your mind about this not being sufficiently useful to be built-in, then I will do write a mode; eventually. Jonas