Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve extended Exordium help #237

Merged
merged 7 commits into from
Jan 20, 2025

Conversation

pkryger
Copy link
Collaborator

@pkryger pkryger commented Jan 13, 2025

This PR aims at improving experience when searching for help in Emacs. Just a
short enumeration of changes:

  • add casual - I found it super useful for modes I use only casually (see
    what I did there 🤪),
  • update helpful buffers to stick to the same window,
  • update completing-read experience when using helpful - display extra
    details and allow to peek at docstring (like in helm-M-x),
  • update help buffers to use clean buttons (i.e., remove ticks around things
    that are clickable and should be displayed using appropriate face), and stick
    to the same window when clicking around,
  • update smerge mode to recenter around the first unmerged,
  • update docs to reflect the above,
  • update CI as snapshot Emacs now displays fancy error messages.

As usual, please see individual commits for more details.

Emacs-30 snapshot has started producing error messages with backtick/tick pair
for symbols.
`helpful-mode` is derived from `special-mode`.  The latter is the only mode
that has been added to `show-paren-predicate` in Emacs-29.  Yet it's very
helpful to have visual help in `helpful-mode`.
When completing any of the `helpful` commands, for example
`helpful-function` (`C-h f`), `helpful-variable` or (`C-h v`) display details
of the completion. This is ahieved by using helm provided function, that is by
default used to provide affixations for symbols (i.e., when using
`describe-function` or `describe-variable`).

BREAKING CHANGE: Use built-in `completions-detailed` as per helm advice and
  hide it behind a `exodrium-help-extenstions` flag
@pkryger pkryger force-pushed the help-improvements branch 2 times, most recently from 82fa04e to 32c965b Compare January 14, 2025 09:31
When using one of `helpful` commands (for example `helpful-callable`), it is
possible to invoke `helm`'s persistent action that will describe currently
selected symbol by hitting `C-j`.

Example usage:
- call `helpufl-callable`,
- type something to narrow list of candidates (for example `message`),
- select one of the candiates by moving selection in the `helm` completion
  buffer, using  `C-n`/`C-p`),
Insetead of hitting `RET` (that would dissmiss the `helm` completino buffer and
pop up a new `helpful` buffer describing the selected symbol), you can now type
`C-j` to just preview the selected symbol.

This enables at least a couple workflows:

- You can rapidly browse documentation for multiple narrowed symbols (for
  example when searching for a function or a variable) by hitting `C-j` on
  successive candidates.

- You can just take peek a symbol documentation by hitting `C-j` and then
  dismiss both `helm` and `helpful` buffers by hitting `C-g` and go back to the
  window configuration that was before calling `helpful` command.
@pkryger
Copy link
Collaborator Author

pkryger commented Jan 20, 2025

@philippe-grenet, @steve-downey, just a friendly reminder about this PR. Let me
know if something is not clear, I am happy to explain what I tried to achieve.

@steve-downey
Copy link
Collaborator

I've been meaning to explore casual -- I use wdired, for example, just often enough to not remember how to get to it from dired.

+1

Copy link
Collaborator

@steve-downey steve-downey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@pkryger
Copy link
Collaborator Author

pkryger commented Jan 20, 2025

I've been meaning to explore casual -- I use wdired, for example, just often enough to not remember how to get to it from dired.

Glad you found it useful. And thanks for review. For me it's calc - anything beyond +-*/ and I have to consult documentation 🤦‍♂️

@pkryger pkryger merged commit 4265966 into emacs-exordium:master Jan 20, 2025
16 checks passed
@pkryger pkryger deleted the help-improvements branch January 21, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants