-
Notifications
You must be signed in to change notification settings - Fork 14
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
Why can't programmers tell the difference between Christmas and Halloween? #34
Comments
Great bug report, thank you. I love the bug title. There is Format doesn't currently help you because suggest.el doesn't know to try Your second issue is #3. |
OK, we can now do |
Quick turnaround! The solution is almost correct. Now when I run the query, I get
But evaluating
|
That should now be fixed. |
I'm a contributor! Wilfred/suggest.el#34
Because DEC 25 is OCT 31.
suggest
doesn't suffer from this problem though:What I'd like to get back is something like
Stringifying a number is no problem, so I take it the issue is just the radix conversion.
It turns out that
suggest
doesn't "know about"format
; that is,format
isn't included insuggest-functions
. I add it.I still don't get the result I want, so I try adding a more specialized function:
This time I get what I want:
If I run it again, however, I get slightly worse results:
In fact, if I run some other query, then run
[25] => "31"
again (is there a better notation for this?), then run it again, I get the same results:(octalize 25)
is included the first run, but not in subsequent runs.I guess this issue really has two issues.
I think radix conversion is common, simple, and "discoverable" enough to warrant inclusion in
suggest-functions
. I don't know exactly what the right function to use is; I've tried using functions fromcalc
, but to no avail. There must be an appropriate library somewhere.Different results from one run to the next. I've seen this behavior with other functions (e.g.
[100] => 10
), so I don't think it has anything to do withoctalize
being a "user-defined" function.The text was updated successfully, but these errors were encountered: