-
Notifications
You must be signed in to change notification settings - Fork 275
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
evil-collection-integration.el: advice show-paren-function doesn't highlight opening bracket #79
Comments
I haven't tried your recipe, but isn't it the expected behaviour? I don't think evil-collection fiddles at all with show-paren-mode. I could be wrong though. |
@edkolev It does the same thing without evil-collection right? I did a quick check with evil only and the same behavior exists (I believe... someone else please check. :)) I think you're right though, it should highlight the paren if you're on the ending paren and evil's eol defcustom is set (can't remember the name right now). I think the problem is emacs by default (without evil/evil-collection) will only highlight the paren if the point is after the last paren (similar to how point needs to be after paren when eval-ing s-expressions). I could be totally off base but I think taking a closer look at the show-paren advice we have and fixing it up will be the right fix. Thanks for the report, that behavior was bugging me too but I couldn't put my finger on what it was. |
I don't have this issue with regular evil. |
I see.. Looks like evil-mode activates/deactivtes those advices..
I have a couple ideas for a quick fix but would be interested in hearing some other ideas. A better solution might be to just rewrite the advice to use the new advice-add advice and enable it using advice-add and/or run ad-enable/activate-regexp ourselves (that seems wayy messy). |
Moved to advice-add as well as move integration into separate file.
I just went with changing the advice + moving it to its own integration file. Lemme know how it goes for you @edkolev. |
Works great, thanks for the quick response! It now works as regular evil. |
Wouldn't it make sense to automatically add the advice? |
I wanted to move that functionality out anyways so just went with the optional. It's similar to #60 (comment). There might be a set of functionality that should be set even if the user doesn't want the related keybindings. I'm still thinking about how to handle that. |
My bad, I misunderstood the commit. Agreed that the separation makes sense. |
Hi, and again, thanks for this package!
I ran into the following issue - in normal state,
show-paren-mode
works when the point is on an opening bracket(
(the closing bracket is highlighted), but doesn't work when the point is on a closing bracket (the opening bracket is not highlighted).To reproduce:
M-x show-paren-mode
:new
then enter(abc)
(
, works as expected:)
- doesn't work as expected because the opening bracket is not highlightedThanks!
The text was updated successfully, but these errors were encountered: