Comments (4)
@naclander for me it already works that way, with either ivy-mode or helm-mode enabled it is more obvious, without the only difference to find-function is, that there is no (default 'function-name'). Just try to press enter
from helpful.
@Dickby this is the case in some situations but not all, so I think it is a bug. FWIW I am also using helm-mode
for this.
I can get helpful-function to correctly default, for exaple, when my point is on top of list-colors-disaply
in (list-colors-disaply)
. However, when my point is above setq
in (setq test 'test)
setq is not suggested as the default. Can you confirm whether or not this is the case for you?
In all above cases, describe-function
correctly suggests the function under point.
from helpful.
setq
is a macro, not a function. You can use helpful-callable
if you want to search for both functions and macros, or helpful-symbol
for any bound symbol.
helpful-command
, helpful-function
and helpful-macro
are more specific, and won't offer the symbol at point if it isn't the right type.
The docs could definitely be clearer on this.
from helpful.
@Wilfred thanks for the response. It makes sense why you implemented it this way.
However, I assumed that the helpful-*
functions were analogous to their emacs equivalent, and would therefore act the same way. i.e. helpful-function
maps to describe-function
.
In this case, describe-function
works on both macros and functions. I think from a usability perspective this is nicer for users as well, because if I'm calling describe-function
/helpful-function
on something, I probably have no idea what that thing is, let alone whether it's a macro or a function.
At a minimum, maybe the docs should say to use helpful-callable
to replace describe-function
, and helpful-variable
to replace describe-variable
.
from helpful.
Related Issues (20)
- Treatment of local/global values
- Can't install using Straight.el: `Wrong type argument: listp, 1` HOT 2
- Suggestion: `helpful--navigate` should respect `display-buffer-alist` HOT 1
- RFE: Duplicate help-mode's `c`, `i` and `s` bindings HOT 1
- Docstrings should not double-escape strings
- helpful-variable not working
- invalid-read-syntax "] in a list" 2 22
- How do you go back? HOT 3
- Handling of left/right single quotation marks
- Case in disambiguation of variable or function definition of a symbol
- New stable release for Emacs 29? HOT 1
- forward-sexp: Scan error: "Unbalanced parentheses", 121867, 1 with Emacs 29 HOT 18
- Force helpful to have only one buffer like *Help* HOT 1
- Emacs 29.2 `helpful-symbol` behavior on `interactive` special form no longer shows documentation HOT 2
- "Note: file is write protected" message when source file is read-only
- Byte compile warnings HOT 1
- wrong-type-argument listp for `describe-function` HOT 1
- Refactoring callee & source finding code to elisp-refs? Interested?
- Add support for "describe-mode"?
- Provide example for common emacs lisp expressions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helpful.