From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#39321] [PATCH] gnu: Add emacs-unkillable-scratch. Resent-Message-ID: From: Amin Bandali 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> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Nicolas Goaziou Cc: 39321@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=9Ccommit=E2=80=9D rather than latest =E2=80=9Cre= lease=E2=80=9D, here=E2=80=99s a v2 that adds an explanatory comment about why we use the latest commit: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-emacs-unkillable-scratch.patch Content-Transfer-Encoding: quoted-printable From=202204aaf2dfb68f4d466404776805ab739e909b44 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. =2D-- 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 =2D-- 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 han= dy + ;; `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+)))) =2D-=20 2.25.0 --=-=-= Content-Type: text/plain > > Thank you! > > Regards, > Cheers, amin --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl4waicACgkQi0Sgzce5 VvKEMQ/7BolXroqrYC4GWBlA5dHCo9y81+vQPCV0BqJztX83szySLT2+RkAkNH+7 e0XuBgC6D4W2Qq1e2jPaAORZ/3+Rx/j3XCRrMOSC30/H0J67zIVPOchARM23YrGr GYojpUI0+EDQlUtIKTz2rhruWul2Q1xHw/RKKIvft8NK32Kg7jye+QgwtSD53oI9 6L8CcddR2Ctcj2f6D6fGm8Rdh7naGxfIoGgy4q2pva5Uaemhg3LVSFzmfXJ55zXE skEUNw6Gbrgxjz5Q9J8Lc7EQ3tv+U18lmVfz7XwMBJ54qzQn0JTQUUj8EA6CKFbB TWCk54TQDJiVnD4vpp6QLIK0YiALidHhd3ENJyDHWgUyvSVWzhkQwOrBBowXzt+G Se4TQrJsEFqsdgxt9aS20B/9mc5k1VhTN5gojmc7iPlw5sCYlpgAeAEYqnjzG2zt 1KlSbs3K0P2jMhMEIgilqiiNWE/JF6eQoVFT3HW771qtm0k5xVry35iGmoJt3bm/ NHCm89P0iWDKM+kuPLL0NNxLsqg9IPhQ69oy/Rg4VgNjWCknwVT5y+klHLfzK4g9 daDNwvDIBnlBgi8cqAkGnYxIKoKBo90retsuCSZnGFkcMQoKHLJf6O0d8Az5THIn xd1KAUlL8SMt9juAUjKlxLt5jffxThE7U6yZE9Dx1VywvvaO5LU= =6O4a -----END PGP SIGNATURE----- --==-=-=--