From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#41868: [PATCH] Add project-clean-up command Date: Tue, 16 Jun 2020 11:52:26 +0100 Message-ID: <878sgni8ph.fsf@tcd.ie> References: <87k108wsvb.fsf@warpmail.net> <87ftawq9qy.fsf@warpmail.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="94021"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41868@debbugs.gnu.org, Dmitry Gutov To: "Philip K." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 16 12:54:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jl9EL-000OLt-27 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Jun 2020 12:54:13 +0200 Original-Received: from localhost ([::1]:50252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jl9EK-0003KW-2v for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Jun 2020 06:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jl9DC-0001n6-Ji for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2020 06:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jl9DC-00050u-6p for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2020 06:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jl9DC-0003B6-3p for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2020 06:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jun 2020 10:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41868 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41868-submit@debbugs.gnu.org id=B41868.159230475712183 (code B ref 41868); Tue, 16 Jun 2020 10:53:02 +0000 Original-Received: (at 41868) by debbugs.gnu.org; 16 Jun 2020 10:52:37 +0000 Original-Received: from localhost ([127.0.0.1]:48362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jl9Cn-0003AR-6n for submit@debbugs.gnu.org; Tue, 16 Jun 2020 06:52:37 -0400 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:56263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jl9Cl-0003AD-3I for 41868@debbugs.gnu.org; Tue, 16 Jun 2020 06:52:35 -0400 Original-Received: by mail-wm1-f41.google.com with SMTP id c71so2404121wmd.5 for <41868@debbugs.gnu.org>; Tue, 16 Jun 2020 03:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=f/tYgOvTnvtffMVYLsWGBWeEZUg7X7oAacQvcDGTOY0=; b=uklT3KK8IZXu8y7XGtqaollBdkd9aniRLTLl6uFMGzpDuxFGbejc8NtigNbZScXNBT te56sV9g8w7RsxqZM33n3DIFetL9d5UKYVfX/6VoOt6ZTd5/7287ATFsSG75PFcby6SI 3wIKORLkvf/6C7KOhOOGix53CM9KWcK8c8Pspm8zVGb/t9FDxl00FnUORuO+aUK2UbfZ CMCiCjbmtqz3g4u714VBdASwrlxg09oBn4qkCLAP9B279unJQhlGvroqFMhJve2MYuuT 0iCRXh3dQVjqLVLrxC4CX6O9lqJEnwUApyrgtr29Z1VoKS7picgShXl/YJ85L6bIdMJq DpbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=f/tYgOvTnvtffMVYLsWGBWeEZUg7X7oAacQvcDGTOY0=; b=K/N374/xNra2LjRwONYAXGlUzC9X08KjZDGbUt8U4zXrs0SFko86Xe5Leujcd8ipyX aRIl8bZxKrv9YGZO4MpB89K5zvyWGVjdrDCQuv4eijXRAxygCK0uFU4G/bz1akgsRd9m Z1YZzd1QmGjuVcgbJG9HYZfmONXL5FbA4Nivfb6Y/rcMEYAO338CTmopZ+8rTLeOvFs5 TYbCiHxrvLdgZUK2SE0MwLuQ0h7ZanrbiIvTuh5zhMFJZaM5CjNyCJ5RemMV0C19RnJM 7DKjegB7stQo5s0PcUbKcul6iyi1sdbNbYWBDUuXZlMut3LOMthSnVw9esr9/RQ8099W rr1A== X-Gm-Message-State: AOAM531m4zFzj3xZc1vksoKQ8qFAmAP5U4i1BmdIlt0m/NqcZpHdwLH6 zKloe6WCrsz3fLb2qtTrIIO0Bg== X-Google-Smtp-Source: ABdhPJyaP72QMAsmZPM5xe55EEXkEztWRQQ5IIgvC+nDJpw8Ofb7In/prWa0Oy2uNcnfOxKe+MtgOg== X-Received: by 2002:a1c:9ec5:: with SMTP id h188mr2558543wme.9.1592304749217; Tue, 16 Jun 2020 03:52:29 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id m24sm3422002wmi.14.2020.06.16.03.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 03:52:28 -0700 (PDT) In-Reply-To: <87ftawq9qy.fsf@warpmail.net> (Philip K.'s message of "Mon, 15 Jun 2020 23:50:29 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182020 Archived-At: "Philip K." writes: > (naively) Hoping everything it ok this time. Just one tiny detail from me. ;) > +(defcustom project-spare-buffers-conditions > + '("\\*Help\\*") > + "List of conditions to be ignored by `project-kill-buffers'. > +If a condition is a string, it will be interpreted as a regular > +expression. If the buffer name matches the regular expresion, the > +buffer will not be killed. If a contition is a function, it will > +be called with the buffer object. If it returns a non-nil value, > +the buffer will not be killed." Some of the full stops aren't followed by two spaces here (see sentence-end-double-space in Emacs' dir-locals-file). Perhaps some of the common wording can be factored out as well (feel free to adapt as you see fit): "List of conditions to be ignored by `project-kill-buffers'. Buffers under the current project that match any of these conditions will not be killed by `project-kill-buffers'. Each condition is either a regular expression matching a buffer name, or a predicate function that takes a buffer object as argument and returns non-nil if it matches." > + (let* ((pr (project-current t)) bufs) Nit: No need for let*. Thanks, -- Basil