unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Adam Porter <adam@alphapapa.net>
Cc: emacs-devel@gnu.org
Subject: Re: [NonGNU ELPA] New package proposal: highlight-parentheses.el
Date: Sun, 15 Aug 2021 10:10:37 +0200	[thread overview]
Message-ID: <87lf53ru8f.fsf@gnu.org> (raw)
In-Reply-To: <8735rcdu36.fsf@alphapapa.net>

Adam Porter <adam@alphapapa.net> writes:

Hi Adam,

>> I'm maintaining highlight-parentheses.el [1] and would like to push
>> it to NonGNU ELPA.
>
> This looks very useful.  

It is! :-)

> I think I've seen the package's name before, but I'm not sure I ever
> looked at it.  That may be partially due to its somewhat ambiguous
> name, that seems to resemble similar packages.  For example, I'm
> pretty sure I've conflated it with the built-in show-paren-mode.  And
> I guess users could generally think it does something like
> rainbow-delimiters.el or prism.el, even though it serves a different
> purpose.

Yes, they are all similar but have a different focus.

  - show-paren-mode flashes "the other" paren, i.e., the opening when
    you are on the closing one.
  - rainbow-delimiters colorizes all parens (and brackets, braces) in a
    different color based on their depth.
  - highlight-parentheses is basically like rainbow-delimiters, i.e., it
    also colorizes parentheses (and brackets, braces) based on their
    depth but only the ones surrounding/containing point.

So you could view highlight-parentheses as a cross-breed of
rainbow-delimiters and show-paren-mode.  Just that it's actually a bit
older than rainbow-delimiters.

> If I may engage in a little bikeshedding, would you consider giving it
> a more descriptive name?  Maybe something like highlight-surrounding,
> or highlight-enclosing?  That would help distinguish it from other
> parens-highlighting packages and better describe what it does.

Indeed, but one doesn't change names after more than 13 years of
existence and establishing a user-base.  But I hope that it's
description "Highlight surrounding parentheses" describes it pretty
clear in the `list-packages' listing.

Bye,
Tassilo



      reply	other threads:[~2021-08-15  8:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-14  7:50 [NonGNU ELPA] New package proposal: highlight-parentheses.el Tassilo Horn
2021-08-14 13:38 ` Adam Porter
2021-08-15  8:10   ` Tassilo Horn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lf53ru8f.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=adam@alphapapa.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).