| Age | Commit message (Collapse) | Author |
|
This solves a number of problems:
1. It gives a link to the source code at the top of the buffer, for
users who want to jump to that quickly. See discussion in #67.
2. It favours giving the filename of the source code in the beginning
of the buffer, as discussed in #69. However, we still show the full
path in the source code section. This avoids confusion when users have
upgraded built-in libraries (e.g. org-mode in ~/.emacs.d/elpa).
3. It ensures that buttons to source code files always jump to the
definition location wherever possible.
4. It highlights functions that are interactive or autoloaded, and
links to the relevant parts of the manual to clarify what that means.
|
|
edebug info may be a marker or a list, ensure we handle both.
|
|
If find-function-C-source-directory isn't set, or if it's set to a
directory that contains source to a different Emacs version, just
return nil from helpful--definition.
|
|
This fixes a number of issues spotted in the docstring of vhdl-mode.
|
|
Fixes #88
|
|
|
|
When we are opening a buffer for source code, we're essentially in
batch mode.
|
|
Previously the variable docstring had already been passed through
substitute-command-keys and it was too late for our button conversion.
|
|
|
|
The refactoring in 53dd618 checked that 'created' was t before we
actually set 'created'.
|
|
|
|
|
|
Previously, the regexp was greedy, so we would erroneously highlight:
`foo `bar'
as a single symbol. Fixes #87.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fixes #83.
|
|
Look at all keymaps in global variables, so we don't miss keymaps like
`minibuffer-local-map`. Ignore inherited keybindings. Ignore menu bar
items (I don't find them useful at least).
Refactor global keybinding logic, as the global-map variable means we
don't need to treat global keybindings as a special case.
|
|
|
|
|
|
Fixes #24.
This is much inspired by the sample code given by @xenodium in
issue #36. Thanks! :)
|
|
See defface for an example.
|
|
|
|
E.g. try setting text-quoting-style
|
|
|
|
|
|
|
|
|
|
|
|
Emacs allows you to write \[foo] to show the keybinding for command
foo. It provides \= as a way of escaping.
Ensure we substitute \= properly in docstrings, using a similar logic
to substitute-command-keys. We still provide additional buttons, so
\[foo] will be converted to a button pointing to foo in Helpful
buffers.
Fixes #80.
|
|
Great suggestion from @narendraj9 in #24.
|
|
|
|
|
|
|
|
Define helpful-max-buffers as a compromise between 'keep everything'
and 'cleanup immediately', allowing users to decide how many helpful
buffers they want to keep around.
Fixes #66
|
|
* Add helpful--insert-section-break
* Refactor header strings
* Add newline to helpful--heading
* Add sym-type variable to helpful-update
|
|
Previously we would spend a lot of time executing mode hooks when
Emacs source code was loaded.
|
|
|
|
|
|
|
|
This should fix #74 and #68, as well as abo-abo/swiper#1380.
make-text-button calls add-text-properties, which mutates the string
we passed in. If we also use this string with find-file, we end up
calling find-file with propertized strings.
Perhaps recentf should be more robust against propertized strings, but
fixing it in helpful is reasonable and clean.
|
|
|
|
|
|
Closes #27
|
|
|
|
See indirect-function for an example
|
|
|