From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csQQb-0001lE-JW for guix-patches@gnu.org; Mon, 27 Mar 2017 04:55:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csQQY-0006Ao-EZ for guix-patches@gnu.org; Mon, 27 Mar 2017 04:55:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1csQQY-0006Ai-AY for guix-patches@gnu.org; Mon, 27 Mar 2017 04:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1csQQY-0000S9-3n for guix-patches@gnu.org; Mon, 27 Mar 2017 04:55:02 -0400 Subject: bug#26268: [PATCH] gnu: Add emacs-idle-highlight. Resent-Message-ID: From: Alex Kost References: <20170326233912.23146-1-va511e@yahoo.com> Date: Mon, 27 Mar 2017 11:54:42 +0300 In-Reply-To: <20170326233912.23146-1-va511e@yahoo.com> (Vasile Dumitrascu's message of "Mon, 27 Mar 2017 01:39:12 +0200") Message-ID: <87bmsnhzfx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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: Vasile Dumitrascu Cc: 26268@debbugs.gnu.org Vasile Dumitrascu (2017-03-27 01:39 +0200) wrote: Hello Vasile! > * gnu/packages/emacs.scm (emacs-idle-highlight): New variable. > --- > gnu/packages/emacs.scm | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm > index 4fe2ffa4d..02f92bc26 100644 > --- a/gnu/packages/emacs.scm > +++ b/gnu/packages/emacs.scm > @@ -3960,3 +3960,24 @@ abbreviation and automatically expand it into function templates.") > (description "@code{emacs-memoize} is an Emacs library for > memoizing functions.") > (license license:unlicense))) > + > +(define-public emacs-idle-highlight > + (package > + (name "emacs-idle-highlight") > + (version "20120920.948") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "http://melpa.org/packages/idle-highlight-mode-" > + version ".el")) We don't (at least we shouldn't IMO) use files from MELPA. The problem is: once the original source will be updated on github, MELPA will build it and the previous MELPA version will not be available anymore. So I think it's better to use the original source which is: https://github.com/nonsequitur/idle-highlight-mode/archive/1.1.3.tar.gz Could you send an updated patch with this tarball? Sorry, I missed your previous emacs packages (symon, monroe and keyfreq), which are committed already, but eventually they will become "broken": for example, when there will be a new commit in "monroe" repository, MELPA will build the new version and the current "monroe-20170220.540.el" file will be removed from MELPA, so the current 'emacs-monroe' package could never be built after that. The situation was much worse in the past, when MELPA updated even untouched(!) packages every several hours, so their hashes were changing all the time, so the files from MELPA couldn't be used at all. Nowadays, MELPA updates packages only when there are some changes in the source. > + (sha256 > + (base32 > + "083ihf97a20l9pbqgn9jh6vdx97z40mp2fhi17qs90a16hpfhx5j")))) > + (build-system emacs-build-system) > + (home-page "http://www.emacswiki.org/cgi-bin/wiki/IdleHighlight") For me it is redirected to so I think it's better to use this page. > + (synopsis "Highlights all occurences of the word the point is on") > + (description > + "@code{idle-highlight-mode} sets an idle timer that highlights all > +occurences in the buffer of the word under the point.") Usually we mention "Emacs" in synopsis or description, like: "This Emacs package provides @code{idle-highlight-mode} that sets an idle timer to highlight all occurences in the buffer of the word under the point." > + (license license:gpl3+))) -- Alex