aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-04-07Fix typo in doc commentHEADmasterRichard M.
Change "helful" to "helpful"
2025-02-27Adapt helpful--keymaps-containing for Emacs 30+Xiyue Deng
The output of helpful--keymaps-containing changed since Emacs 30.x. This patch adapts its test for newer Emacs versions.
2025-02-27Check for interpreted-function-pXiyue Deng
Emacs 30.x added interpreted-function which is different from byte-code-function, and hence helpful--signature will try to treat it like a lambda which will fail with ,---- | (wrong-type-argument listp #[(x) (x) (t) nil "Foo"]) `---- This patch adds tests for such case using interpreted-function-p when it's available.
2025-02-20fix: Improve variable setting logic in helpful.elStrawberryTea
2025-01-31handle `package-version` safely to prevent `listp` errorSau P
When `package-version' is not what we expect (e.g a simple string), a `listp` error is thrown and you are unable to view the variable documentation due to it. This now handles it and provides a fallback value.
2024-06-13Fix scan-sexps error for C-defined variablesStrawberryTea
2024-06-07Fix wrong-type-argument error in helpful-keymmarshall540
2023-10-27Use setopt for "set" button if availableStrawberryTea
2023-10-07Test CI on Emacs 29Wilfred Hughes
2023-10-07Repair helpful--display-implementations test for emacs 29.1aagon
2023-10-07Look for "function" or "variable" text in doc comments case-insensitivelyWilfred Hughes
Fixes #326
2023-10-07Remove broken tokei LOC badgeWilfred Hughes
2023-09-11fix nil pos when building button for varsJimmy Yuen Ho Wong
2023-08-08Enable outline-support for Emacs 29Rahguzar
2023-08-08Mark customizable variables (user options) in the summary lineKisaragi Hiu
User options are variables declared with defcustom. It is useful to know if a variable is a user option or not, because if it isn't, it's usually not safe to set it in the init file. Calling user options "customizable variables" makes it clear that a user option is still a variable. This is kind of like how interactive functions are not referred to as "commands" in the summary.
2023-08-08Support describing faces using `helpful-symbol`.yuhan0
Uses the native `describe-face`, possible to switch to a `helpful-face` command if implemented in the future.
2023-08-08Improve user-friendliness of disambiguation promptyuhan0
Uses read-char-choice for selecting between callable (press "c") and variable (press "v") when the symbol is ambiguous, eg. `buffer-file-name'. Less mental effort required than parsing a y-or-n-p prompt and answering in the negative to "show variable?" to show help for a function.
2023-07-30Roll version for 0.22Wilfred Hughes
I accidentally released 0.20 on an older checkout, so 0.21 has been released today too.
2023-07-30Update changelog for 0.210.21Wilfred Hughes
Looks like I should have pulled before tagging a release
2023-07-300.20 has been released, roll versionWilfred Hughes
Fixes #327
2023-05-04helpful--heading: propertize newline as well, enabling `:extend t`Mekeor Melire
Prior to this commit, setting attribute :extend of the face helpful--heading to t did not take any effect. This is fixed by this commit by propertizing the newline right after the heading as well.
2023-04-18suppress some compiler warningsLucius Hu
2023-03-22Remap `revert-buffer` and `revert-buffer-quick` to `helpful-update`.okamsn
2023-02-27`C-h x` for commands (standard binding)Hraban Luyat
The standard Emacs binding for help with commands is `C-h x`, no need to shadow `C-h C`.
2022-12-09Use help-key-binding as face for keystrokesNacho Barrientos
2022-12-01Update changelog0.20Wilfred Hughes
2022-12-01Add support for following and storing org "help" linksDamien Cassou
Closes #38
2022-12-01Test again Emacs 28 and drop CI for 25/26Wilfred Hughes
2022-11-08Remove use of (point) as a generalized variableksqsf
This use has been made obsolete since Emacs 29.
2022-10-23Mark symbol in "the command <symbol>" as callableKisaragi Hiu
This, for example, skips an unnecessary "show variable?" for local minor mode variables. Whereas recentf-mode (global) says: > Non-nil if Recentf mode is enabled. > > See the recentf-mode command > for a description of this minor mode. , whitespace-mode (local) says: > Non-nil if Whitespace mode is enabled. > > Use the command whitespace-mode to change this variable. . This change catches the latter case.
2022-09-25Ignore comments when narrowing to defunWilfred Hughes
Closes #287
2022-09-18Don't activate a major mode in throwaway buffersWilfred Hughes
This can be slow, even with major mode hooks disabled. Minor mode hooks may do non-trivial amounts of work. Instead, just set the syntax table, so we can search the buffer for definitions accurately. Fixes #287
2022-09-18Remove unused variableWilfred Hughes
2022-09-18Preserve point when finding variables defined in an open bufferWilfred Hughes
Fixes #301
2022-09-18Factor out a helper for opening buffers if neededWilfred Hughes
2022-08-29Assign `list-buffers-directory` to help topicDaniel Nagy
This displays the help topic in `M-x list-buffers` instead of showing an empty path column.
2022-08-29Unescape \= in signature docstringNikita Bloshchanevich
`helpful--signature': unquote \=, as added by `help--quote-signature'. An example where this is needed is `\(setf\ seq-first\)'.
2022-07-04Fix advised native-compiled function being treated as primitivesKisaragi Hiu
In Emacs 28, subrp is t for a native-compiled function; to check whether a function is a primitive, there is a new function subr-primitive-p. Previously, unadvised functions have an extra check that does the same thing as subr-primitive-p, but that was not applied to advised functions. This applies it to both.
2022-05-28Check for emacs version in helpful--docstring testErik Šabič
2022-05-28Fix advised function docstring testErik Šabič
2022-05-12Roll versionWilfred Hughes
2022-04-11Add buttons for shortdoc groups when shortdoc.el is availableKisaragi Hiu
Emacs 28 added shortdoc.el and added many builtin functions into shortdoc groups accessed through the help buffer. For example, this is the help buffer for `mapcar`: Apply FUNCTION to each element of SEQUENCE, and make a list of the results. The result is a list just as long as SEQUENCE. SEQUENCE may be a list, a vector, a bool-vector, or a string. Other relevant functions are documented in the vector, list and string groups. Probably introduced at or before Emacs version 1.4. This commit adds the same line into Helpful so it looks like this: Signature (mapcar FUNCTION SEQUENCE) Documentation Apply FUNCTION to each element of SEQUENCE, and make a list of the results. The result is a list just as long as SEQUENCE. SEQUENCE may be a list, a vector, a bool-vector, or a string. Other relevant functions are documented in the vector, list and string groups. View in manual
2022-02-20Fix `helpful--autoloaded-p` in Emacs 29.0.50 (#283)Adrià Garriga-Alonso
Fix `helpful--autoloaded-p` in Emacs 29.0.50
2021-12-26Update buffers before switching to them.Roshan Shariff
Calls `helpful-update` in the help buffer before switching to it with `helpful-switch-buffer-function`. Currently, this is done in the opposite order. Switching to an empty buffer prevents window resize logic from working properly. For example, it makes the window too small when the `window-height` action alist key is set to `#'shrink-window-if-larger-than-buffer` or `#'fit-window-to-buffer` in `display-buffer-alist`.
2021-12-10Use lexical-binding in tests and fix crash exposed0.19Wilfred Hughes
argdesc in byte-code function objects may be an integer rather than a list, so handle that case gracefully.
2021-12-10Fix warnings on unused vars in test suiteWilfred Hughes
2021-12-10Use well-formed interactive lambdas to silence a warningWilfred Hughes
2021-12-10Don't offer 'find all references' for anonymous lambdasWilfred Hughes
2021-12-10Fix crash on lambdas with docstringsWilfred Hughes
Spotted when debugging #278.
2021-12-10Rewrite helpful--tree-any-p as a loopWilfred Hughes
Fixes #279