From patchwork Tue Jan 28 17:06:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Amin Bandali X-Patchwork-Id: 20014 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4569F16385; Tue, 28 Jan 2020 17:08:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0A5F71637E for ; Tue, 28 Jan 2020 17:08:12 +0000 (GMT) Received: from localhost ([::1]:34100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwULT-0006di-CA for patchwork@mira.cbaines.net; Tue, 28 Jan 2020 12:08:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41726) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwULL-0006bw-VC for guix-patches@gnu.org; Tue, 28 Jan 2020 12:08:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwULK-00043p-P5 for guix-patches@gnu.org; Tue, 28 Jan 2020 12:08:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwULK-00043Z-Ll for guix-patches@gnu.org; Tue, 28 Jan 2020 12:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iwULK-0005AN-H5 for guix-patches@gnu.org; Tue, 28 Jan 2020 12:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39321] [PATCH] gnu: Add emacs-unkillable-scratch. Resent-From: Amin Bandali Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Jan 2020 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39321 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou Cc: 39321@debbugs.gnu.org Received: via spool by 39321-submit@debbugs.gnu.org id=B39321.158023122219772 (code B ref 39321); Tue, 28 Jan 2020 17:08:02 +0000 Received: (at 39321) by debbugs.gnu.org; 28 Jan 2020 17:07:02 +0000 Received: from localhost ([127.0.0.1]:32805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwUKL-00058l-Ms for submit@debbugs.gnu.org; Tue, 28 Jan 2020 12:07:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwUKK-00058W-Bi for 39321@debbugs.gnu.org; Tue, 28 Jan 2020 12:07:00 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iwUKE-0002wX-Ty; Tue, 28 Jan 2020 12:06:55 -0500 Received: from cpe00fc8d518353-cm00fc8d518350.cpe.net.cable.rogers.com ([99.228.8.225]:59816 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iwUK9-0000mU-5i; Tue, 28 Jan 2020 12:06:51 -0500 From: Amin Bandali Organization: GNU References: <20200127235121.14924-1-mab@gnu.org> <87lfpsm2zg.fsf@nicolasgoaziou.fr> <87a768htql.fsf@gnu.org> <87sgk0djci.fsf@nicolasgoaziou.fr> Date: Tue, 28 Jan 2020 12:06:46 -0500 In-Reply-To: <87sgk0djci.fsf@nicolasgoaziou.fr> Message-ID: <874kwfh5nd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Nicolas Goaziou writes: [...] > > I'm fine with using the latest release, but could you add a comment > explaining the reasoning in the package definition and send it again? > If you meant latest “commit” rather than latest “release”, here’s a v2 that adds an explanatory comment about why we use the latest commit: > > Thank you! > > Regards, > Cheers, amin From 2204aaf2dfb68f4d466404776805ab739e909b44 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 28 Jan 2020 12:01:27 -0500 Subject: [PATCH v2] gnu: Add emacs-unkillable-scratch. * gnu/packages/emacs-xyz.scm (emacs-unkillable-scratch): New variable. --- gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index e5af72121a..d0ae1e3a04 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -21212,3 +21212,29 @@ comment.") (description "@code{delight} enables customizing or hiding the mode-line text (lighter) of major and minor modes.") (license license:gpl3+))) + +(define-public emacs-unkillable-scratch + ;; Use the latest (unreleased) commit as of now, since it contains a handy + ;; `unkillable-scratch-do-not-reset-scratch-buffer' customization to not + ;; repopulate the scratch buffer with `initial-scratch-message'. + (let ((commit "b24c2a760529833f230c14cb02ff6e7ec92288ab") + (revision "0")) + (package + (name "emacs-unkillable-scratch") + (version (git-version "1.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/EricCrosson/unkillable-scratch.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "13wjbcxr3km4s96yhpavgs5acs5pvqv3ih1p84diqb3x3i6wd4pa")))) + (build-system emacs-build-system) + (home-page "https://github.com/EricCrosson/unkillable-scratch") + (synopsis "Prevents the *scratch* buffer from being killed") + (description "@code{unkillable-scratch} helps prevent killing buffers +matching a given regexp.") + (license license:gpl2+)))) -- 2.25.0