all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 64575@debbugs.gnu.org
Subject: bug#64575: 29.0.92; Help buffers are unnecessarily under Outline mode
Date: Thu, 13 Jul 2023 19:39:23 +0300	[thread overview]
Message-ID: <86wmz3ix50.fsf@mail.linkov.net> (raw)
In-Reply-To: <831qhd71cp.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Jul 2023 15:36:54 +0300")

>> OTOH, when some Help command will insert a heading line, then it will
>> be handled automatically.  For example, 'C-h m' (describe-mode) could
>> take advantage of outline-minor-mode with heading lines for every
>> displayed minor mode.
>
> If some Help feature can benefit from outline-minor-mode, it should
> turn that mode on by itself, not rely on that being set already by
> some other code.

I tried to enable outline-minor-mode in the output buffer of 'C-h m',
and it has some problems:

1. outline-regexp of 'C-h b' is not suitable for 'C-h m', because the
output of 'C-h b' is more uniform, but the output of 'C-h m' includes
free-form text that causes false positives for the regexp ".*:$".

2. heading lines of 'C-h m' are beginning with a link, so the link faces
are copied to the outline indicator.

Both these problems could be fixed by adding an asterisk to the beginning
of headings in 'C-h m', for example:

  * Font-Lock minor mode (no indicator):

Does this look nice?  Or should we try to find a regexp for existing output?

>> > The actual functions you use in "C-h f" don't matter; the point is
>> > that the Outline minor mode, once set by "C-h b", stays turned on in
>> > the *Help* buffers, instead of being reset when not needed.
>> 
>> If you still think it should be disabled everywhere outside of 'C-h b',
>> this could be fixed by such patch:
>
> Thanks, I think this should be installed on master (assuming that it
> solves the problem; I didn't have time to try it).

I did more testing, and pushed to master.





  reply	other threads:[~2023-07-13 16:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-11 19:18 bug#64575: 29.0.92; Help buffers are unnecessarily under Outline mode Eli Zaretskii
2023-07-12  6:35 ` Juri Linkov
2023-07-12 12:36   ` Eli Zaretskii
2023-07-13 16:39     ` Juri Linkov [this message]
2023-07-15  8:21       ` Eli Zaretskii
2023-07-17 17:51         ` Juri Linkov
2023-07-23 13:16   ` Visuwesh
2023-07-23 13:35     ` Eli Zaretskii

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=86wmz3ix50.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=64575@debbugs.gnu.org \
    --cc=eliz@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 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.