From: Tassilo Horn <tsdh@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package proposal: visual-path-abbrev.el
Date: Fri, 08 Mar 2019 15:02:57 +0100 [thread overview]
Message-ID: <87zhq51n1q.fsf@gnu.org> (raw)
In-Reply-To: <jwva7i5535r.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 08 Mar 2019 00:49:37 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I'm now using option 1 and set the visual-file-name-abbrev overlay
>> property which I'm using to know which overlays are mine to (random)
>> instead of just t on the current and the last file name point was one
>> in a post-command-hook function.
>
> 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?
I guess I could change my code so that only those file names get an
overlay where all predicates are satisfied (abbrev shorter or visually
shorter than file name), and handle the uncollapsing using
cursor-sensor-mode. Then I would't need a conditional display spec at
all.
How'd I do the uncollapsing in my cursor-sensor-function? Delete the
overlay on 'entered and add it again on 'left?
>> Other than that, do you think it's ok to add this package to ELPA?
>
> Yes, tho please try and change the naming to follow GNU's convention
> w.r.t to "path vs filename".
Yes, I've already changed it to speak of filenames everywhere.
>> If so, is the (C) FSF and "This file is part of GNU Emacs" correct for
>> an ELPA(-only) package?
>
> Yes, thank you.
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.
Bye,
Tassilo
next prev parent reply other threads:[~2019-03-08 14:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-02 11:05 [ELPA] New package proposal: visual-path-abbrev.el Tassilo Horn
2019-03-02 11:34 ` Eli Zaretskii
2019-03-02 14:59 ` Tassilo Horn
2019-03-03 9:46 ` Tassilo Horn
2019-03-03 13:48 ` Stefan Monnier
2019-03-03 15:11 ` Eli Zaretskii
2019-03-03 15:52 ` Tassilo Horn
2019-03-03 17:18 ` Eli Zaretskii
2019-03-03 17:55 ` Tassilo Horn
2019-03-04 18:03 ` Eli Zaretskii
2019-03-05 10:01 ` Tassilo Horn
2019-03-05 16:21 ` Eli Zaretskii
2019-03-05 18:32 ` Tassilo Horn
2019-03-08 5:49 ` Stefan Monnier
2019-03-08 14:02 ` Tassilo Horn [this message]
2019-03-08 17:34 ` Tassilo Horn
2019-03-08 19:01 ` Stefan Monnier
2019-03-08 22:18 ` Stefan Monnier
2019-03-09 6:52 ` Tassilo Horn
2019-03-08 18:52 ` Stefan Monnier
2019-03-02 21:25 ` Leo Liu
2019-03-03 9:25 ` Tassilo Horn
2019-03-04 0:23 ` Leo Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zhq51n1q.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.