From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Extend tabulated-list-mode to support marks Date: Sat, 25 Jul 2020 21:32:51 +0700 Message-ID: References: <20200724005105.11f85d5f@pineapple> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39351"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers , Matthew White To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 25 16:33:49 2020 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 1jzLFF-000A8o-6J for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Jul 2020 16:33:49 +0200 Original-Received: from localhost ([::1]:57996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzLFE-00075K-8J for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Jul 2020 10:33:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzLEa-0006eu-Je for emacs-devel@gnu.org; Sat, 25 Jul 2020 10:33:09 -0400 Original-Received: from mail-ua1-x933.google.com ([2607:f8b0:4864:20::933]:39493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzLEX-0003kv-5J for emacs-devel@gnu.org; Sat, 25 Jul 2020 10:33:08 -0400 Original-Received: by mail-ua1-x933.google.com with SMTP id h18so3975343uao.6 for ; Sat, 25 Jul 2020 07:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wPjL6VqPCMeOCLWpfGvS017snjkjgk5ag+RWfq9nFO0=; b=U26nMkfiQbtQtAzq5PdhoYkuZvSnk6OIoyfoVdbHdtg24ECFzMjPjMgctqhqrv0mti GDUreJt87Ifw8G1r5k65WwVInDfZbI+RPMvX0hVEwv/w4kodD718qvNJWpiDUxDfDMAv OsYqbS1+Zkgc8KL4mniw21THkLz80Kp414tYB/THOJCSuWtHGppu3WycZEa43MZH8WpP oQ8hAGHARJVHBIu4OnaX7pbbVxWGXKFfZUMZ7Hx+lzfzkvYnMp+OuMJ1XQk75pPzrFDa BNwb9RODuKeiJ/ERcxEXGm4/AgCc2YXYLDomWpqKa3VY9obz8S1ViUpn2je8v51d7ip2 x3Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wPjL6VqPCMeOCLWpfGvS017snjkjgk5ag+RWfq9nFO0=; b=eBsmblx8cSzFF3TNMGNQgKcYytsxJS+5vFvLwKPBXbsctgWxxo7rlWt0ZzxNX7XOFH LfQIOYAsWyzoPr53cS1TsPMEKHZY4sieAxw2gWFGVwYBb3ku7tMbV96JQKQlOHPa4LSU SRQoeuURR6ryeRLOIAaD0DLo1g/bGP6d8SdWfHqQl3H+F5W0BDHLgzYbZz+O1Zp6LdlD UyZ2znETPfldKcmh6O5s9Zus0pfrbOZAULy7BidILNBmhywOiRaIsIINdghWDsRBvbbF 7esPziBixKHOtrJvozVzgBqbzOwAhxMy1tP3NjrAh4p6sMLVkgBwpB3S+vm3RXllrNpA Zyqg== X-Gm-Message-State: AOAM531IhE+XMrosrm9FS7HPO71RQQxm/oR+VOn7as9jjHVgzzr4yL98 kir2nB4CVrcPLq8m0PN8AjdNUlzyOLvkJIQcKZM= X-Google-Smtp-Source: ABdhPJwDs11bZX01EKmfHxiOwvyGpZBMI8JODjkXBeYA0rK+OBOa6t0x64KsSm86SLv8ItZBvCWLO7Wk1tdfefyZJRg= X-Received: by 2002:a67:c485:: with SMTP id d5mr10857644vsk.70.1595687583228; Sat, 25 Jul 2020 07:33:03 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::933; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x933.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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-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:253214 Archived-At: On Sat, 25 Jul 2020 at 21:23, Stefan Monnier wrote: > > >> > and (2) if maybe tabulated-list-mode would benefit from a generic > >> > implementation of multiple marking, unmarking, marking-for-deletion, > >> > and command application. > >> > >> Maybe "for deletion" is too application-specific (some uses of > >> `tabulated-list-mode` can't "delete" or at least not conveniently enough > >> that it's a common use case), but a definite +1 for the rest. > > > > My point is that there are many instances of a generic scenario: > > Fully agreed. I was just pointing out that to keep it generic it might > be better to start with limiting it to support "mark/unmark" and "apply > command to marked elements" without presuming that "deletion" might be > such a command (e.g. in package.el I'm not sure "deletion" makes a lot > of sense since most of the entries listed reflect the existence of > something on a remote server that's not under the user's control). Fair enough. Given a generic marking facility, derived modes can just treat deletion as one kind of a mark.