all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Porter <jporterbugs@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, 50895@debbugs.gnu.org
Cc: Dmitry Gutov <dgutov@yandex.ru>
Subject: bug#50895: 28.0.50; show-paren-mode is distracting in some modes
Date: Wed, 29 Sep 2021 10:59:04 -0700	[thread overview]
Message-ID: <1cf60c2c-7ecc-631b-22c3-6d779476aeeb@gmail.com> (raw)
In-Reply-To: <87fstn8fak.fsf@gnus.org>

On 9/29/2021 10:25 AM, Lars Ingebrigtsen wrote:
> I think defaulting show-paren-mode to "on" is a good change in general,
> but it's distracting in some modes.  For instance, when presenting data
> in a buffer, having point flash around when moving around in the buffer
> is not what most people will want.
> 
> (Think Gnus buffers, *Help* buffers, etc.)
> 
> Some people have been using this mode for years, though, and are fine
> with the cursor bopping around when trying to read data, so
> force-disabling it in (say) `special-mode' isn't quite the answer,
> either.
> 
> Does anybody see a way to enable it by default in non-special buffers
> only, but not explicitly switching it off in special-mode buffers for
> those that want it?

Perhaps something akin to `font-lock-global-modes'? The help text for 
that says:

> If nil, means no modes have Font Lock mode automatically turned on.
> If t, all modes that support Font Lock mode have it automatically turned on.
> If a list, it should be a list of ‘major-mode’ symbol names for which Font Lock
> mode should be automatically turned on.  The sense of the list is negated if it
> begins with ‘not’.

Then the default value for `show-paren-global-modes' could be 
`(prog-mode)' or `(prog-mode text-mode)', or even `(not special-mode)', 
depending on one's opinions about whether `show-paren-mode' makes sense 
for prose. That would cover both this bug as well as providing an easy 
way for users to customize the major modes where `show-paren-mode' is 
enabled (this is already possible with `show-paren-local-mode', but it'd 
be a bit simpler with `show-paren-global-modes').





  parent reply	other threads:[~2021-09-29 17:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29 17:25 bug#50895: 28.0.50; show-paren-mode is distracting in some modes Lars Ingebrigtsen
2021-09-29 17:54 ` bug#50895: [External] : " Drew Adams
2021-09-29 17:59 ` Jim Porter [this message]
2021-09-29 18:01   ` Lars Ingebrigtsen
2021-09-29 20:02     ` Dmitry Gutov
2021-09-30  6:45       ` Lars Ingebrigtsen
2021-09-30 11:19         ` Dmitry Gutov
2021-09-30 13:39           ` Lars Ingebrigtsen
2021-09-30 17:00             ` Dmitry Gutov
2021-10-01  7:30               ` Lars Ingebrigtsen
2021-09-30  9:02       ` Eli Zaretskii
2021-09-30  9:26         ` Lars Ingebrigtsen
2021-09-30 10:02           ` Eli Zaretskii
2021-09-30 17:03         ` Dmitry Gutov
2021-09-29 18:02 ` Eli Zaretskii
2021-09-29 18:03   ` Lars Ingebrigtsen
2021-09-29 18:11     ` bug#50895: [External] : " Drew Adams
2021-09-29 18:25     ` Eli Zaretskii
2021-09-29 18:31       ` Lars Ingebrigtsen
2021-09-29 18:40         ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2021-09-29 17:10 bug#50894: Disable show-paren-mode in special modes Juri Linkov
2022-09-02 12:23 ` bug#50895: 28.0.50; show-paren-mode is distracting in some modes Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=1cf60c2c-7ecc-631b-22c3-6d779476aeeb@gmail.com \
    --to=jporterbugs@gmail.com \
    --cc=50895@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=larsi@gnus.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.