Commit Graph

94 Commits

Author SHA1 Message Date
Yuan Fu
f86d7a6c37
Fix: dead-frame 2019-02-20 14:25:05 -05:00
Yuan Fu
0649423e70
Add warning if eldoc-box-hover-at-point-mode is enable too early
Early means eldoc-box-hover-mode is not enabled
2019-02-10 13:06:16 -05:00
Yuan Fu
b9a235b61c
Make frame visible after all configurations done 2019-02-10 13:03:35 -05:00
Yuan Fu
d5c52cb7f0
Cleaner logic on getting frame and window 2019-02-10 13:02:56 -05:00
Yuan Fu
6ce7402874
Fix point coordinate differences across OS’s. 2019-02-10 12:53:55 -05:00
Yuan Fu
5a9ceec283
Try to fix #11 2019-02-09 15:52:50 -05:00
Yuan Fu
6f18d01501
Revert "Simplify childframe creation"
Built-in function doesn't really reused the childframe,
change back to manually reuse.

This reverts commit 6ceeb22b68.
2019-01-23 14:39:51 -05:00
Yuan Fu
9f22d688a3
Github doesn't support header link, either 2019-01-06 20:56:08 -05:00
Yuan Fu
18829272b8
make at-point minor mode a add-on of the other minor mode
This way there is no confusion.
2019-01-06 20:54:54 -05:00
Yuan Fu
5deb2fbe10
Fix misplace in README 2019-01-06 20:49:54 -05:00
Yuan Fu
a34e2e2e6e
Don't cleanup when clicking popup 2019-01-05 19:45:50 -05:00
Yuan Fu
5479b6357e
GitHub doesn't support Org link 2019-01-04 19:22:45 -05:00
Yuan Fu
8a5490242d
Add comment on disabling eldoc documentation in minibuffer 2019-01-04 19:15:03 -05:00
Yuan Fu
ec9a4003de
Make sure point is at top when displaying childframe 2019-01-04 19:06:43 -05:00
Yuan Fu
4dc269bc1e
Add the hack into codebase 2019-01-04 19:06:34 -05:00
Yuan Fu
504827bf45
Add a kindly reminder about font selection 2019-01-04 19:03:20 -05:00
Yuan Fu
6ceeb22b68
Simplify childframe creation
display-buffer-in-childframe will automatically reuse childframe
2019-01-04 18:56:42 -05:00
Yuan Fu
ae1a4690a9
Comment out en local variable
We don't need it now
2019-01-04 18:56:16 -05:00
Yuan Fu
7bd69875e0
Update readme for new face attribute font 2019-01-04 18:55:48 -05:00
Yuan Fu
4f1d227d4d
Enable users to set font of the childframe
This step is before resizing.
2019-01-04 18:51:37 -05:00
Yuan Fu
c00c447ac5
Update hack 2019-01-01 01:44:57 -05:00
Yuan Fu
0278b46f7e
Fix: meesed up minor modes
Because at-point mode uses hover mode, disabling each other
doesn't work.
2018-12-31 00:54:32 -05:00
Yuan Fu
f5e15dbf09
Fix "childframe" typos 2018-12-29 00:49:43 -05:00
Yuan Fu
03d075eda6
Fix: empty childframe when used with lsp-mode
lsp-mode returns empty string as documentation from time to time,
add a workaround to ignore that
2018-12-28 21:45:38 -05:00
Yuan Fu
2f5910325d
Move position of "at-point" popup to the left
This way the childframe is still under the point when
the cursor type is bar
2018-12-28 21:41:16 -05:00
Yuan Fu
179350f563
Add more explaination in README 2018-12-26 16:42:42 -05:00
Yuan Fu
7b2768a6c5
Merge branch 'master' of https://github.com/casouri/eldoc-box into pop-at-point 2018-12-26 16:38:39 -05:00
Yuan Fu
dccad7d196
Update README (and screenshot) 2018-12-26 16:38:01 -05:00
Yuan Fu
42c176375a
Remove eldoc pre command hook to eliminate flicker 2018-12-26 16:36:34 -05:00
Yuan Fu
1d9b0bb000
Disable the other minor mode before enabling either one 2018-12-26 16:35:27 -05:00
Yuan Fu
da8113682f
Merge pull request #7 from casouri/pop-at-point
Merge Pop at point
2018-12-22 12:43:37 -05:00
Yuan Fu
29cf6d7fb6
Merge branch 'master' into pop-at-point 2018-12-22 12:42:15 -05:00
Yuan Fu
291e5ac97c
Fix: tool-bar-mode mess up popup position 2018-12-21 02:16:02 -05:00
Yuan Fu
108403d5f3
Add hack 2018-12-20 22:54:58 -05:00
Yuan Fu
c7fea8278e
Update README 2018-12-20 22:19:58 -05:00
Yuan Fu
cf5ef5510c
Fix: local-variable eldoc-box-position-function doesn't work 2018-12-20 22:17:04 -05:00
Yuan Fu
615e8bce86
Update README for new minor mode 2018-12-20 21:58:48 -05:00
Yuan Fu
28eb1d7f8a
Add convenient minor mode for at-point mode 2018-12-20 21:56:48 -05:00
Yuan Fu
bbc1139e95
Fix at-point position calculation 2018-12-20 21:56:36 -05:00
Yuan Fu
3ca3a304b6
Add contributro notice 2018-12-20 13:53:24 -05:00
Yuan Fu
f7b4806694
Tweak the pop at point position 2018-12-20 10:31:14 -05:00
Yuan Fu
1733e35085
Add eldoc-box-clear-with-C-g, update README 2018-12-20 10:26:03 -05:00
Yuan Fu
8f71b3c65e
Fix at point position function 2018-12-20 10:18:49 -05:00
Yuan Fu
c4af2c7e23
Support childframe at point 2018-12-20 09:57:30 -05:00
Yuan Fu
1738ccae4c
Support max width/height to be functions 2018-12-20 09:29:34 -05:00
Yuan Fu
112afa1137
Abstract timer interval as a variable
1 second is a bit too long, but old machines might want a longer
interval, I set it to 0.2 on my machine and CPU looks ok.
2018-12-18 12:34:48 -05:00
João Távora
c7a670d6b9
Delete two unused functions
* eldoc-box.el (eldoc-box-quit-hook)
(eldoc-box--inject-quit-func): Delete.
2018-12-18 12:26:08 -05:00
João Távora
44007aa67d
When quitting eldoc-box-hover-move, really delete the frame
This helps to reset the frame in case something has gone wrong.

* eldoc-box.el (eldoc-box-hover-mode): Delete frame and set
var to nil.
2018-12-18 12:26:08 -05:00
Yuan Fu
c5786a371c
Merge pull request #6 from casouri/fix-flicker
Fix: Flicker when move out and into a eldoc-able symbol quickly
2018-12-18 12:20:59 -05:00
Yuan Fu
e02f496368
Fix: Flicker when move out and into a eldoc-able symbol quickly
- (eldox-box--eldoc-message-function): doesn't cleanup childframe
  when passed with nil anymore

I finally figured out why the flicker occurs:

1. when eldoc asks for doc string, elgot returns nil immeditaly
2. when you move out of a eldoc-cable symbol and move back in
   the childframe isn't cleaned up. Adn eldoc recieves nil from
   eglot, passes that to message function (eldoc-message)
   -> (eldoc-message-function), eldoc-box gets it and cleans up
   childframe. Then eglot recieved doc string from server
   and calls (eldoc-message), childframe is then redisplayed.

Since eldoc-box cleans up after itself and doesn't rely on eldoc
to cleanup. A quick fix is simply don't clean up when eldoc-box
(eldoc-box--eldoc-message-function) recieves nil from eldoc
(eldoc-message).
2018-12-17 11:44:47 -05:00