Giter VIP home page Giter VIP logo

Comments (4)

Dickby avatar Dickby commented on July 28, 2024

@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.

naclander avatar naclander commented on July 28, 2024

@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.

Wilfred avatar Wilfred commented on July 28, 2024

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.

naclander avatar naclander commented on July 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.