From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package proposal: visual-path-abbrev.el Date: Fri, 08 Mar 2019 15:02:57 +0100 Message-ID: <87zhq51n1q.fsf@gnu.org> References: <87tvglpmcx.fsf@gnu.org> <83k1hhh5mb.fsf@gnu.org> <874l8k47fi.fsf@gnu.org> <83imx0f0x0.fsf@gnu.org> <87k1hg6jl3.fsf@gnu.org> <83h8ciecub.fsf@gnu.org> <8736o1iqsf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="258884"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 08 15:03:47 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2G6F-0015EK-JP for ged-emacs-devel@m.gmane.org; Fri, 08 Mar 2019 15:03:47 +0100 Original-Received: from localhost ([127.0.0.1]:44224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2G6C-0007vF-L9 for ged-emacs-devel@m.gmane.org; Fri, 08 Mar 2019 09:03:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2G5b-0007ux-R9 for emacs-devel@gnu.org; Fri, 08 Mar 2019 09:03:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2G5Y-00083L-Om; Fri, 08 Mar 2019 09:03:04 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:51981) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1h2G5X-0003yv-9J; Fri, 08 Mar 2019 09:03:03 -0500 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 99B5422017; Fri, 8 Mar 2019 09:03:01 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Fri, 08 Mar 2019 09:03:01 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrgedtgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucfkphepudefgedrudduledrvd egrdduleehnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgr uhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhh eppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhmnecuvehluhhsthgvrhfuihiivgep td X-ME-Proxy: Original-Received: from jiffyarch (j289989.servers.jiffybox.net [134.119.24.195]) by mail.messagingengine.com (Postfix) with ESMTPA id 2B2F51030F; Fri, 8 Mar 2019 09:02:59 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Fri, 08 Mar 2019 00:49:37 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233928 Archived-At: Stefan Monnier 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