From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Durand Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Want to submit two packages "ilist" and "blist" Date: Mon, 20 Sep 2021 08:10:51 +0800 Message-ID: References: <87bl4o8r0i.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40134"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-apple-darwin20.5.0) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 20 03:03:38 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mS7ic-000AJ5-1w for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 03:03:38 +0200 Original-Received: from localhost ([::1]:53012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mS7ia-0006cE-MI for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Sep 2021 21:03:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mS6te-0008BN-55 for emacs-devel@gnu.org; Sun, 19 Sep 2021 20:10:58 -0400 Original-Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:33662) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mS6tc-0005wt-Bf for emacs-devel@gnu.org; Sun, 19 Sep 2021 20:10:57 -0400 Original-Received: by mail-pg1-x535.google.com with SMTP id u18so15670455pgf.0 for ; Sun, 19 Sep 2021 17:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=4VOe9KsKB2b6iDIuTxVpdj61mYzyKrkk6W2gEW91RRY=; b=AVn4edjhtr9nAANobSMG4Dw/CRHaJXPXVRFBBrXlqdDBj9lDiSTFnsNY9V+Y7Vi7IY p0H74mo1afLaBr2l7VskPgu+qLb0mARD2+GW8zNCslhqE/U2AjXqEd8P3Yw3ZQ57EMVA pshX+0KGN8eGw3VJwTelu7M+2dMS21WFzxQCmTYYfrqLM//ugmiK73VTzp7pRF3Xex8z x6mQgIXBiDzxiMqd3/82++yiOjt9ol0ez2FLTTyjl+HYv5YNQl7fLZvtxTuMsNQOtbc/ TEyx87NifPY/xft34Avnw479WvPTDSxI0siagVZrJ6/sdyejhSpO8Ib5J0a11MV6jtgw 0G6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=4VOe9KsKB2b6iDIuTxVpdj61mYzyKrkk6W2gEW91RRY=; b=qLhmWd2Q/YOVgPqlJx+frlYuuDVMS7oqESqqGtu5PX8jW91GPwXXTS00dJLM5uxewL ko+oARd2MK6S1mOiOsBmgLgZjju+fMA/h7rMuhPZLvvuTluWr7fe3um/mdZ0PGtdMIJ1 X+EPoaqgYUmIT7KL4e/DCudSe/8J1WjsT4/NCKPgRH/ysKnTcyp+M6oRn8iBsIEFjhBU 6xhqvs0h9Xi2CVx9pMQFnteyN1bUW4cGXIPeWUZRzFZjgNBMfvyMokU8BRT78stSc6g5 6KYFhMoSr1Ot7vajkVGu+Zh1gO/RDrOC3bMuha4oNOVhvfI/yxV0wMc4IxJqKSguMi9T aN3Q== X-Gm-Message-State: AOAM532lWf4u1oN0F3h7lpVBwjSdeH1aR1v6DgKisquB21JV3vs3yti0 pvkHY5KZuY87GqlNJLJB7u5oKLtz5s4= X-Google-Smtp-Source: ABdhPJxXW9mCgciHbrSLK/tiSBR/Ur6SdfH4lljhlLGT7KBF4ruuTTw5Dqv/HL0DabM20+jCfN3Q7w== X-Received: by 2002:a63:4917:: with SMTP id w23mr20579629pga.344.1632096654727; Sun, 19 Sep 2021 17:10:54 -0700 (PDT) Original-Received: from MacBook-Pro-de-Severe.local.gmail.com (123-193-46-223.dynamic.kbronet.com.tw. [123.193.46.223]) by smtp.gmail.com with ESMTPSA id z17sm12201079pfj.185.2021.09.19.17.10.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 17:10:54 -0700 (PDT) In-Reply-To: <87bl4o8r0i.fsf@alphapapa.net> (Adam Porter's message of "Sun, 19 Sep 2021 11:33:01 -0500") Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=mmemmew@gmail.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 19 Sep 2021 21:02:34 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275092 Archived-At: >>>>> On Sun, 19 Sep 2021 11:33:01 -0500, Adam Porter said: Adam> Durand writes: >> I have written two Emacs pacakges, called "ilist" and "blist" >> (the former is the "engine", and hence a dependency, of the >> latter). Now I am thinking about submitting the packages to GNU >> ELPA. >> >> The package "blist" is to display the list of bookmarks, in the >> sense of "bookmark.el", in a similar way as Ibuffer. Adam> I see in your readme that you mention grouping. Rather than Adam> reimplementing that, you may be interested in what I've done Adam> in taxy.el. For example, it makes it trivial to define a Adam> custom grouping DSL and a custom column-based view using Adam> magit-section.el. See the example "bookmarky" application: Adam> https://github.com/alphapapa/taxy.el/blob/master/examples/bookmarky.el Adam> It ends up looking like this: Adam> https://raw.githubusercontent.com/alphapapa/taxy.el/master/images/bookmarky.png Thanks for the information. I did not know about taxy.el previously. It seems to be an interesting library. It reminds me of hierarchy.el by the way: . Adam> Grouping keys and display columns are defined with simple Adam> top-level forms, and these keys and columns can be customized Adam> by users by using the same top-level forms in their configs. Adam> For example: Adam> (bookmarky-define-key filename (&key name regexp) "Return Adam> NAME if bookmark ITEM's filename matches REGEXP, or without Adam> REGEXP, the filename." (when-let (filename (bookmark-prop-get Adam> item 'filename)) (pcase regexp (`nil filename) (_ (when Adam> (string-match-p regexp filename) name))))) Adam> (bookmarky-define-column "File" (:max-width nil :face Adam> font-lock-doc-face) (bookmark-prop-get item 'filename)) Adam> Then a grouping "program" written in the DSL looks like: Adam> (defvar bookmarky-default-keys '( ((handler Adam> '(burly-bookmark-handler) :name "Burly")) ((directory Adam> "~/src/emacs/" :name "Emacs" :descendant-p t))) "Default Adam> keys.") Adam> Turning the resulting hierarchy into the magit-section-based Adam> view is done with a few functions in a standard way, so Adam> there's very little bespoke code to write. Adam> I'll probably publish taxy-magit-section.el on ELPA as a Adam> separate package after it matures a bit more. >From what I can tell, the taxy.el plays the role of "ilist" in "blist", right? I think I will enjoy reading it afterwards. -- Durand