From unknown Mon Jun 23 20:20:34 2025 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) From: Eugene Klimov Date: Tue, 6 Apr 2021 01:08:07 +0500 Message-Id: <20210405200807.30111-1-lipklim@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Spam-Score: 0.7 (/) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) * 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+)))) -- 2.31.1 From unknown Mon Jun 23 20:20:34 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#47605] [PATCH] gnu: Add emacs-mode-line-idle. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Apr 2021 09:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47605 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47605@debbugs.gnu.org Cc: Eugene Klimov , 47605-done@debbugs.gnu.org X-Debbugs-Original-To: Eugene Klimov via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.161813228116713 (code B ref -1); Sun, 11 Apr 2021 09:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Apr 2021 09:11:21 +0000 Received: from localhost ([127.0.0.1]:53997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVW7l-0004LQ-0y for submit@debbugs.gnu.org; Sun, 11 Apr 2021 05:11:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:59786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVW7i-0004LB-WA for submit@debbugs.gnu.org; Sun, 11 Apr 2021 05:11:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVW7i-0002zu-M4 for guix-patches@gnu.org; Sun, 11 Apr 2021 05:11:18 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:57213) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVW7g-0006oC-Cj for guix-patches@gnu.org; Sun, 11 Apr 2021 05:11:18 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id C278520004; Sun, 11 Apr 2021 09:11:11 +0000 (UTC) From: Nicolas Goaziou References: <20210405200807.30111-1-lipklim@mailbox.org> Date: Sun, 11 Apr 2021 11:11:10 +0200 In-Reply-To: <20210405200807.30111-1-lipklim@mailbox.org> (Eugene Klimov via Guix-patches via's message of "Tue, 6 Apr 2021 01:08:07 +0500") Message-ID: <87wnt9qj81.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hello, Eugene Klimov via Guix-patches via writes: > * gnu/packages/emacs-xyz.scm (emacs-mode-line-idle): New variable. Thank you. I applied the patch with the tweaks below. > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://gitlab.com/ideasman42/emacs-mode-line-idle.git") I removed the ".git" suffix > + (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. I slightly reworded this part, which looks very odd, to say the least. > +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.") I removed this part of the description, since it is a detail of implementation. For future patches, please avoid inserting the package definition at the end of the file, as this is more likely to introduce merge conflicts. You wouldn't want to make my life miserable, would you ? ;) Regards, -- Nicolas Goaziou From unknown Mon Jun 23 20:20:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eugene Klimov Subject: bug#47605: closed (Re: [bug#47605] [PATCH] gnu: Add emacs-mode-line-idle.) Message-ID: References: <87wnt9qj81.fsf@nicolasgoaziou.fr> <20210405200807.30111-1-lipklim@mailbox.org> X-Gnu-PR-Message: they-closed 47605 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 47605@debbugs.gnu.org Date: Sun, 11 Apr 2021 09:12:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1618132323-16774-1" This is a multi-part message in MIME format... ------------=_1618132323-16774-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #47605: [PATCH] gnu: Add emacs-mode-line-idle. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 47605@debbugs.gnu.org. --=20 47605: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D47605 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1618132323-16774-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 47605-done) by debbugs.gnu.org; 11 Apr 2021 09:11:21 +0000 Received: from localhost ([127.0.0.1]:53995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVW7k-0004LN-P5 for submit@debbugs.gnu.org; Sun, 11 Apr 2021 05:11:20 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVW7i-0004L2-Ot for 47605-done@debbugs.gnu.org; Sun, 11 Apr 2021 05:11:19 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id C278520004; Sun, 11 Apr 2021 09:11:11 +0000 (UTC) From: Nicolas Goaziou To: Eugene Klimov via Guix-patches via Subject: Re: [bug#47605] [PATCH] gnu: Add emacs-mode-line-idle. References: <20210405200807.30111-1-lipklim@mailbox.org> Date: Sun, 11 Apr 2021 11:11:10 +0200 In-Reply-To: <20210405200807.30111-1-lipklim@mailbox.org> (Eugene Klimov via Guix-patches via's message of "Tue, 6 Apr 2021 01:08:07 +0500") Message-ID: <87wnt9qj81.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47605-done Cc: Eugene Klimov , 47605-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Eugene Klimov via Guix-patches via writes: > * gnu/packages/emacs-xyz.scm (emacs-mode-line-idle): New variable. Thank you. I applied the patch with the tweaks below. > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://gitlab.com/ideasman42/emacs-mode-line-idle.git") I removed the ".git" suffix > + (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. I slightly reworded this part, which looks very odd, to say the least. > +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.") I removed this part of the description, since it is a detail of implementation. For future patches, please avoid inserting the package definition at the end of the file, as this is more likely to introduce merge conflicts. You wouldn't want to make my life miserable, would you ? ;) Regards, -- Nicolas Goaziou ------------=_1618132323-16774-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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) From: Eugene Klimov To: guix-patches@gnu.org Subject: [PATCH] gnu: Add emacs-mode-line-idle. Date: Tue, 6 Apr 2021 01:08:07 +0500 Message-Id: <20210405200807.30111-1-lipklim@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 05 Apr 2021 16:09:15 -0400 Cc: Eugene Klimov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) * 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+)))) -- 2.31.1 ------------=_1618132323-16774-1--