From patchwork Mon Apr 5 20:08:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eugene Klimov X-Patchwork-Id: 28330 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 85E1B27BC68; Mon, 5 Apr 2021 21:25:58 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,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 ESMTPS id BFB7727BC67 for ; Mon, 5 Apr 2021 21:25:57 +0100 (BST) Received: from localhost ([::1]:38916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTVnI-0001vX-Sn for patchwork@mira.cbaines.net; Mon, 05 Apr 2021 16:25:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTVXu-0000WJ-Pm for guix-patches@gnu.org; Mon, 05 Apr 2021 16:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTVXu-0001Pj-IO for guix-patches@gnu.org; Mon, 05 Apr 2021 16:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTVXu-0003xT-CW for guix-patches@gnu.org; Mon, 05 Apr 2021 16:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47605] [PATCH] gnu: Add emacs-mode-line-idle. Resent-From: Eugene Klimov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Apr 2021 20:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47605 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47605@debbugs.gnu.org Cc: Eugene Klimov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161765335815156 (code B ref -1); Mon, 05 Apr 2021 20:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Apr 2021 20:09:18 +0000 Received: from localhost ([127.0.0.1]:38693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTVXB-0003wO-Kp for submit@debbugs.gnu.org; Mon, 05 Apr 2021 16:09:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:39128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTVWh-0003vK-IY for submit@debbugs.gnu.org; Mon, 05 Apr 2021 16:08:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTVWh-0000RL-EA for guix-patches@gnu.org; Mon, 05 Apr 2021 16:08:47 -0400 Received: from mout-p-103.mailbox.org ([2001:67c:2050::465:103]:56440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lTVWe-0000ob-Ae for guix-patches@gnu.org; Mon, 05 Apr 2021 16:08:46 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4FDhYg1kJzzQjwV for ; Mon, 5 Apr 2021 22:08:39 +0200 (CEST) Authentication-Results: spamfilter04.heinlein-hosting.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1617653313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vQUjBzuu348VkuL9szF8lfk0MCCKJZKY+3pX21TNQQ8=; b=S1wjCEVe5aqP8MKMbx12haUUkJYWP1PRHaVU7PyV6hk/BkXNRQaw0GhEaOT1bYT74IFmxW QW01QrrPQl8AcQj1YBxYVqTxK9BNGDyFdGbrb15L1yrviB3/nCJNOWit5+YJZCYHvSqtqZ T+UNeKT+PdGKIRvYMICNkY3rhqwLbbLMP0pYKFLvIkB7GlZpZXH0Ykmhsb/PFx8V05dJAy dX/RRLzQNu6ZGAYhG8id+3Oqi5JUvGiPFXmpwStzqfzguQCtxbsyWXYdRfcndqCYMyal20 CUDyl3D9pjFhmyVtwugUW2hFvxeDSOM+UKdBd/hWUAuJqzzNRPSgCif+Vvw0tA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received; s= mail20150812; t=1617653311; bh=0QW7NH3xcbKHhpfZRpN2v9FFiCJWqz9cW +oW5GmaJ80=; b=Gqa8y6YwmW4qxXd9woaqN765ddOZ5RcEWzIqikYsvU/tNar8O itJ8dKWvDfgCLl7Ao4zbkLE3fWo8fjOm0Tnioys+ZTLy3/rQaD1f9Cr+aA9COm6a Ho0ecSnDmkkvW582IPme2i7N9/2XnZem6lsdANZoptOKr6Eolmy6VJflEJ+k/Q4a rmOfW2v76b9nPzda8bdqBzd9xicEeE+hK+jKs+AjF16D6lB9L72MkyHF0vZM2zAb wXRhIOU2D53reV5/OwfpH69YEovXou7LVJCRgJf16+jdXqh9YsxDzwD1qBAfayrQ //aUBymgU9gJd0KGWESHzSyY8zDnhm4uXGgdw== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id wSZWZ_2p1uoO; Mon, 5 Apr 2021 22:08:31 +0200 (CEST) Date: Tue, 6 Apr 2021 01:08:07 +0500 Message-Id: <20210405200807.30111-1-lipklim@mailbox.org> MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -6.07 / 15.00 / 15.00 X-Rspamd-Queue-Id: 548A617BE X-Rspamd-UID: 28daa2 Received-SPF: pass client-ip=2001:67c:2050::465:103; envelope-from=lipklim@mailbox.org; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 05 Apr 2021 16:09:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 05 Apr 2021 16:25:41 -0400 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" Reply-to: Eugene Klimov X-ACL-Warn: , Eugene Klimov via Guix-patches X-Patchwork-Original-From: Eugene Klimov via Guix-patches via From: Eugene Klimov X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-mode-line-idle): New variable. --- gnu/packages/emacs-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 239915fffe..ea9f3bfcd1 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -96,6 +96,7 @@ ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Stefan Reichör ;;; Copyright © 2021 Simon Tournier +;;; Copyright © 2021 Eugene Klimov ;;; ;;; This file is part of GNU Guix. ;;; @@ -27566,3 +27567,34 @@ and prefered services can easily be configured.") quasi-prefix map, with many useful bindings. These bindings are shorter than usual, using mostly unprefixed keys.") (license license:gpl3+))) + +(define-public emacs-mode-line-idle + ;; Package has no release. Version is extracted from "Version:" keyword in + ;; main file. + (let ((commit "02b1da6278e43cc9cc0356110cc6bfbb37eb8241") + (revision "1")) + (package + (name "emacs-mode-line-idle") + (version (git-version "0.1" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/ideasman42/emacs-mode-line-idle.git") + (commit commit))) + (sha256 (base32 "0ky330b2sfbzkbxbfp9b21hdywsjw26bllspglz08hrbni7jmry8")) + (file-name (git-file-name name version)))) + (build-system emacs-build-system) + (home-page "https://gitlab.com/ideasman42/emacs-mode-line-idle") + (synopsis "Simple delayed text evaluation for the mode-line") + (description + "Mode Line Idle (mode-line-idle.el) is a minor mode that +provides a convenient way to defer text evaluation in a way that can +be easily integrated into existing mode-line's without requiring a +minor mode or configuration. + +Mode Line Idle helps to add useful information into the mode-line +without slowing down Emacs performance. While delaying updates is not +so difficult, having multiple timers can become awkward when mixed in +with the mode-lines configuration. Instead of avoiding expensive +information in the mode-line, it can be calculated when idle.") + (license license:gpl3+))))