-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
counsel "find-X" commands worse at default guessing than the corresponding builtins #1088
Comments
I disagree with the proposed change, it's better the way it is now. There's value of looking up specifically the symbol at point. There's also value in seeing it's not bound. You can always press C-M-u if you want to describe the containing function. |
Well, of course the cases you mention are covered by the builtins,
too, unless I'm missing something. I guess the fact I messed up find-
and describe- in the OP didn't help, but it's related.
A concrete example:
In the form
(setq ivy-on-del-error-function 'ignore)
With point on "ignore" or "setq", both describe-function and
counsel-describe-function will do the (same) right thing.
With point somewhere else, e.g. on "ivy-on-del-error-function",
describe-function still suggests "setq" as the function (macro) being
called at point, while counsel-describe-function doesn't suggest
anything.
I've found that behaviour utterly frustrating. You really think it's
better? I hope not, but if you do, what about counsel-find-library,
which fails to even suggest the name of loaded feature at point (e.g.
with point at "ivy" in "(use-package ivy)"). Again, find-library does
the right thing.
|
Yes, since it gives me info that the symbol at point isn't bound. |
abo-abo
added a commit
that referenced
this issue
Nov 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would expect the counsel replacements to be at least as smart as the builtin commands they purport to supersede, but they're not (in this respect at least).
E.g., the builtin
find-function
guesses the right default anywhere inside the function call. Counsel had better make use of the preexisting and well-tried builtin guessing functions, e.g. the patch below seems to fix thefind-function
case. There are equivalents forfind-variable
,find-library
...The text was updated successfully, but these errors were encountered: