aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-14Ensure that we don't call find-file with propertized strings0.4Wilfred Hughes
This breaks recentf, as it serialises the propertized string to a file ~/.recentf and then Emacs can't read the file on startup. Fixes #68.
2017-12-14Emulate eval-expression more closely when reading new valuesWilfred Hughes
Put point at the beginning of the new value, and run eval-expression-minibuffer-setup-hook so things like paredit get enabled.
2017-12-14Ensure enabling and disabling edebug works as expectedWilfred Hughes
Edebug requires the source buffer to exist, so ensure we preserve the source buffer when edebugging. Ensure helpful--can-edebug-p returns the correct value, even if the source buffer was not freshly created.
2017-12-13Don't offer Forget for primitivesWilfred Hughes
2017-12-13Fix crash on definition of primitive variablesWilfred Hughes
2017-12-13Ensure that we cleanup freshly created buffersWilfred Hughes
This fixes the failing tests. It also ensures that we show the correct source code for primitive functions/special forms. We also use (-let ((foo nil)) ...) rather than (-let ((foo)) ...) or (-let (foo) ...) to work around an edebug issue: https://github.com/magnars/dash.el/issues/256
2017-12-13Allow enabling edebug from helpful buffersWilfred Hughes
2017-12-13Calculate C paths relative to find-function-C-source-directoryWilfred Hughes
Fixes #65
2017-12-12Add unit test for helpful on macrosWilfred Hughes
2017-12-12Add TODOWilfred Hughes
2017-12-11Handle edebug properties being a single markerWilfred Hughes
2017-12-11Add a cleanup command helpful-kill-buffersWilfred Hughes
2017-12-10Don't crash on edebugged functionsWilfred Hughes
2017-12-10Require emacs 25.1+Wilfred Hughes
find-function-library is not defined in earlier versions.
2017-12-10Use the library name, not the raw pathWilfred Hughes
Otherwise, we end up opening the .elc file, which is pointless and leaves leftover buffers.
2017-12-10Update changelogWilfred Hughes
2017-12-10Only try to kill the buffer we've createdWilfred Hughes
If buf (the buffer containing the symbol definition) is nil, we end up killing the current buffer. The current buffer is the buffer that we're trying to write into. Fixes #58
2017-12-10Only prepend whitespace if there was a previous buttonWilfred Hughes
2017-12-10Ensure that we handle interactively defined functionsWilfred Hughes
Also add a test
2017-12-10Ensure we can find the definition of functions even in narrowed buffersWilfred Hughes
2017-12-10Remove completed todoWilfred Hughes
2017-12-10Fix whitespaceWilfred Hughes
2017-12-10Minor tidyingWilfred Hughes
2017-12-10Better handling of special formsWilfred Hughes
Ensure the buffer name is correct, and update the helpful-callable docstrings to mention special forms too. Don't offer to forget special forms -- this will probably break your Emacs instance.
2017-12-10Allow users to call Customize from helpful buffersWilfred Hughes
Closes #59
2017-12-10helpful-update now returns nil, so don't use 'shouldWilfred Hughes
2017-12-10Allow setting and toggling variablesWilfred Hughes
2017-12-10Show the name of the variable tooWilfred Hughes
This is useful in general, and more consistent, but it's particularly useful for variable that don't have documentation. Previously, we would just show the value, which is a little confusing. Fixes #19.
2017-12-10Preserve point position more preciselyWilfred Hughes
Going the previous char position is inaccurate if the amount of text on each line has changed.
2017-12-10Always show a blank line before buttonsWilfred Hughes
2017-12-10Prefer make-text-button over custom wrappersWilfred Hughes
These were previously calling insert-text-button, pointlessly requiring us to create a temporary buffer. In most cases, they also don't add anything over calling make-text-button directly.
2017-12-10Ensure helpful--dissassembly passes the symbolWilfred Hughes
We can use the buffer-local variable, but it's inconsistent and error-prone.
2017-12-07Require shut-up (#62)Daniel Kraus
Otherwise helpful fails if shut-up is not loaded yet.
2017-12-06Next release will be 0.4Wilfred Hughes
2017-12-06Update changelog0.3Wilfred Hughes
2017-12-06Allow moving with TAB and S-TABWilfred Hughes
Fixes #5
2017-12-06Silence info lookupsWilfred Hughes
2017-12-06Improve buffer nameWilfred Hughes
Buffer names now take the form *helpful function: foo* or *helpful variable: foo* so we can distinguish the different namespaces more clearly. Closes #55
2017-12-06Document usageWilfred Hughes
Show how to set up keybindings, and stress the difference between describe-function, helpful-function, and helpful-callable. Closes #39 Closes #60
2017-11-29Fix byte compiler warningWilfred Hughes
2017-11-29Fix typoWilfred Hughes
2017-11-20Go to the source when pressing RET on the code excerptWilfred Hughes
2017-11-16Cleanup temporary info bufferWilfred Hughes
I can't reproduce this in a live Emacs instance, but it's failing in the ERT CLI runner.
2017-11-16Update tests broken in 3e10f70Wilfred Hughes
2017-11-16Disable undercover until we've fixed testsWilfred Hughes
2017-11-16Merge pull request #53 from narendraj9/masterWilfred Hughes
Fix helpful-find-var for variables defined in C-Source
2017-11-12Add autoload for helpful-callableWilfred Hughes
Fixes #52
2017-11-12Fix helpful-find-var for variables defined in C-SourceNarendra Joshi
2017-11-03Show the value of buffer-local valuesWilfred Hughes
When creating a helpful buffer, associate it with an underlying buffer, and look up the variable in that context. This ensures that we show the correct value for buffer-local variables. Fixes #50
2017-10-16Simplify and rename helpful--position-headWilfred Hughes
helpful--outer-sexp more closely reflects the purpose of the function, which is to summarise the outer sexp. Use beginning-of-defun rather than walking the sexp ourself. Hopefully this will help with #46.