GNU bug report logs - #13156
dedicated face for parentheses in lisp modes

Previous Next

Package: emacs;

Reported by: Jonas Bernoulli <jonas <at> bernoul.li>

Date: Wed, 12 Dec 2012 12:21:02 UTC

Severity: wishlist

Tags: wontfix

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 13156 <at> debbugs.gnu.org (full text, mbox):

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: "Stefan Monnier" <monnier <at> iro.umontreal.ca>
Cc: 13156 <at> debbugs.gnu.org
Subject: Re: bug#13156: dedicated face for parentheses in lisp modes
Date: Wed, 19 Dec 2012 16:46:16 +0100
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




This bug report was last modified 5 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.