aboutsummaryrefslogtreecommitdiff
path: root/test/unit-test.el
AgeCommit message (Collapse)Author
2018-08-12Rename file to avoid confusion with other projects' unit tests0.13Wilfred Hughes
2018-08-02Extract source code for advised primitivesWilfred Hughes
Resolves #141
2018-08-02Add failing helpful--primitive-p testNick Drozd
The summary given by (helpful-callable 'rename-buffer) is rename-buffer is an interactive function without a source file. Needless to say, this is not correct. The problem stems from helpful--primitive-p's inability to handle advised primitive functions.
2018-07-28Fix an issue with detecting autoloaded core Emacs functionsWilfred Hughes
2018-07-28Show keybindings for command aliases tooWilfred Hughes
Fixes #143
2018-07-28Merge pull request #137 from nickdrozd/key-sequencesWilfred Hughes
Improve helpful--key-sequence performance
2018-07-24Merge pull request #145 from nickdrozd/lambda-calleesWilfred Hughes
helpful--show-callees choked on anonymous functions
2018-07-23Don't describe special forms as functionsWilfred Hughes
Fixes #142
2018-07-23Fix helpful--show-callees to handle anonymous functionsNick Drozd
Using `symbol-name` in a format string is unnecessary, since `format` will already convert symbols to strings. Cutting it allows for handling other types.
2018-07-23Add callees button smoke testsNick Drozd
Currently helpful--show-callees chokes on anonymous functions (I don't understand the finer points of button operation, so I couldn't figure out a more elegant way to write these tests.)
2018-07-16Add ido remapping test caseNick Drozd
2018-07-06Only kill the buffer once, at the endWilfred Hughes
This saves us having to pass through 'opened'.
2018-07-06Cut repeated calls to helpful--definitionNick Drozd
helpful--definition is slow, so call it just once up front and pass the results around to the functions that need them. This is not very elegant, but the performance increase is worth it. This also reduces helpful's sometimes-noisy output by calling certain noisy file-opening functions less often. Fixes #127
2018-07-06Handle anonymous functions in keymapsWilfred Hughes
In future, we could explore showing the source code rather than just saying it's a function. For now, just fix the crash. Fixes #133.
2018-07-06Allow viewing callees from a function tooWilfred Hughes
2018-06-30Fix helpful--keymap-keys to handle smerge-mode-map (#131)Nick Drozd
According to the Elisp manual, a keymap can contain a binding of the form (TYPE ITEM-NAME . BINDING). helpful wasn't checking for that form, so it crashed for maps like smerge-mode which contain it. The manual also mentions a few other forms, including (TYPE ITEM-NAME HELP-STRING . BINDING). I haven't come across that, and this fix wouldn't handle it. Personally, I'd prefer to deal with the weird cases as they arise, as having a concrete instance gives me more confidence that the code handles it correctly.
2018-06-19Handle another docstring URL syntaxWilfred Hughes
2018-06-18Handle references to non-existent keymaps in docstringsWilfred Hughes
Fixes #110.
2018-06-07Handle non-keymaps in minor-mode-map-alist robustlyWilfred Hughes
Fixes #114
2018-05-30Fix test that relied on ido-mode being loadedWilfred Hughes
2018-05-30Extract keybindings from minor-mode-map-alist tooWilfred Hughes
Fixes #112.
2018-05-22Show preceding comments and autoload cookies in source0.10Wilfred Hughes
2018-04-28Smoke test for helpful-visit-referenceWilfred Hughes
2018-04-28Ensure we don't linkify escaped backticksWilfred Hughes
Fixes #93
2018-04-28Add unit tests for helpful--bound-pWilfred Hughes
2018-04-28Load signature from functions that (declare ...) the signatureWilfred Hughes
Fixes #104.
2018-04-07Also linkify bare URLsWilfred Hughes
2018-04-07Add unit test for linkifying URLsWilfred Hughes
2018-03-31Ensure we can find the definitions of interactively defined functionsWilfred Hughes
2018-03-29Handle 'info anchor' references tooWilfred Hughes
2018-03-16Fix keymap rendering with prefix keysWilfred Hughes
See projectile-mode for an example.
2018-03-16Handle aliases separatelyWilfred Hughes
If a symbol is a variable or function alias, say so, and provide a link to the underlying symbol. Ensure the source code is the alias definition, not the definition of the underlying function/variable. Fixes #98
2018-03-12Mark new variable buffers as openedWilfred Hughes
Fixes #101
2018-03-12Split helpful--definition test into two distinct testsWilfred Hughes
2018-03-02Fix references to top-level formsWilfred Hughes
Previoiusly helpful--outer-sexp assumed point was inside a form, so returned the wrong sexp for top-level forms.
2018-02-18Ensure we still show the source code of the functionWilfred Hughes
This was broken for symbol in the previous commit.
2018-02-17Handle unnamed functions bound to keysWilfred Hughes
Fixes #96.
2018-02-17Fix broken testWilfred Hughes
2018-02-14Fix a crash for functions whose body ends with a symbolWilfred Hughes
2018-02-10Display keymap references in docstringsWilfred Hughes
2018-01-20Ensure we handle edebug info correctlyWilfred Hughes
edebug info may be a marker or a list, ensure we handle both.
2018-01-20More robust `foo' handling in docstring highlightingWilfred Hughes
This fixes a number of issues spotted in the docstring of vhdl-mode.
2018-01-15Don't error if a symbol is only defined in a .elc fileWilfred Hughes
Fixes #88
2018-01-07Stricter regexps for highlighting `foo' in docstringsWilfred Hughes
Previously, the regexp was greedy, so we would erroneously highlight: `foo `bar' as a single symbol. Fixes #87.
2018-01-01Handle keymap references in docstringsWilfred Hughes
Fixes #83.
2017-12-30Handle command key substitution correctlyWilfred Hughes
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.
2017-12-21Convert command keys references to buttonsWilfred Hughes
2017-12-18Show aliasesWilfred Hughes
Closes #27
2017-12-16Make tests quieterWilfred Hughes
2017-12-16Don't crash when the underlying buffer has been killedWilfred Hughes