[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package proposal: visual-path-abbrev.el
From: |
Stefan Monnier |
Subject: |
Re: [ELPA] New package proposal: visual-path-abbrev.el |
Date: |
Fri, 08 Mar 2019 13:52:18 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> Another option might be to use cursor-sensor-mode to open/close those
>> abbreviations.
> Hm, that also sounds good. Is cursor-sensor-functions only a text
> property or can I also add that to my overlay?
Either way should work.
Note that your current method has the advantage that it (presumably)
automatically works "right" when the buffer is displayed in multiple
windows (where the "reveled" part in one window isn't revealed in the
other). Doing the same by activating/deactivating overlays is
more painful.
> How'd I do the uncollapsing in my cursor-sensor-function? Delete the
> overlay on 'entered and add it again on 'left?
I'd just move its `display` property to another property and then back
(I'd keep the overlay to detect when you leave).
> Ok, great. Then I'll commit it as soon as I've tried out
> cursor-sensor-mode and decided if that's a better approach.
I see you committed something but haven't had time to look at it yet.
Thanks,
Stefan
- Re: [ELPA] New package proposal: visual-path-abbrev.el, (continued)
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Stefan Monnier, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Tassilo Horn, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Tassilo Horn, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Stefan Monnier, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Stefan Monnier, 2019/03/08
- Re: [ELPA] New package proposal: visual-path-abbrev.el, Tassilo Horn, 2019/03/09
- Re: [ELPA] New package proposal: visual-path-abbrev.el,
Stefan Monnier <=
Re: [ELPA] New package proposal: visual-path-abbrev.el, Leo Liu, 2019/03/02