From patchwork Mon Jan 27 23:51:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amin Bandali X-Patchwork-Id: 20002 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 875AB1635C; Mon, 27 Jan 2020 23:52:08 +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 594D9161F8 for ; Mon, 27 Jan 2020 23:52:08 +0000 (GMT) Received: from localhost ([::1]:52410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwEAp-0006Mb-UG for patchwork@mira.cbaines.net; Mon, 27 Jan 2020 18:52:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36200) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwEAk-0006MU-V0 for guix-patches@gnu.org; Mon, 27 Jan 2020 18:52:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwEAj-00034w-Vs for guix-patches@gnu.org; Mon, 27 Jan 2020 18:52:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwEAj-00034p-TO for guix-patches@gnu.org; Mon, 27 Jan 2020 18:52:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iwEAj-0000xw-T1 for guix-patches@gnu.org; Mon, 27 Jan 2020 18:52:01 -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: Mon, 27 Jan 2020 23:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39321 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39321@debbugs.gnu.org Cc: Amin Bandali X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15801690933676 (code B ref -1); Mon, 27 Jan 2020 23:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jan 2020 23:51:33 +0000 Received: from localhost ([127.0.0.1]:59273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwEAH-0000xE-Gq for submit@debbugs.gnu.org; Mon, 27 Jan 2020 18:51:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:54495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwEAF-0000x7-Sc for submit@debbugs.gnu.org; Mon, 27 Jan 2020 18:51:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36115) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwEAE-0006M3-Ox for guix-patches@gnu.org; Mon, 27 Jan 2020 18:51:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iwEAE-0002ru-Li for guix-patches@gnu.org; Mon, 27 Jan 2020 18:51:30 -0500 Received: from cpe00fc8d518353-cm00fc8d518350.cpe.net.cable.rogers.com ([99.228.8.225]:58152 helo=chaman.hitronhub.home) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iwEAC-0001Xd-Tg; Mon, 27 Jan 2020 18:51:29 -0500 From: Amin Bandali Date: Mon, 27 Jan 2020 18:51:21 -0500 Message-Id: <20200127235121.14924-1-mab@gnu.org> X-Mailer: git-send-email 2.25.0 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 * gnu/packages/emacs-xyz.scm (emacs-unkillable-scratch): New variable. --- gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index c5214405d0..0ff2f5d0c0 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -21125,3 +21125,26 @@ pattern guessed from thing under current cursor position. mercury-mode provided by Emacs as a wrapper around prolog-mode.") (home-page "https://github.com/ahungry/metal-mercury-mode") (license license:gpl3+)))) + +(define-public emacs-unkillable-scratch + (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+))))