From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkqh7-0007rm-Bg for guix-patches@gnu.org; Thu, 24 Aug 2017 07:53:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkqh4-00065N-7T for guix-patches@gnu.org; Thu, 24 Aug 2017 07:53:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43567) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkqh4-00065D-44 for guix-patches@gnu.org; Thu, 24 Aug 2017 07:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dkqh3-0004Pw-Tg for guix-patches@gnu.org; Thu, 24 Aug 2017 07:53:01 -0400 Subject: [bug#28216] [PATCH 1/2] gnu: Add emacs-prop-menu. References: <20170824115014.18860-1-petermikkelsen10@gmail.com> In-Reply-To: <20170824115014.18860-1-petermikkelsen10@gmail.com> Resent-Message-ID: From: Peter Mikkelsen Date: Thu, 24 Aug 2017 13:52:20 +0200 Message-Id: <20170824115221.18958-1-petermikkelsen10@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 28216@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-prop-menu): New variable. --- gnu/packages/emacs.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 140a53205..e7f7902c8 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2017 Jan Nieuwenhuizen ;;; Copyright © 2017 Oleg Pykhalov ;;; Copyright © 2017 Mekeor Melire +;;; Copyright © 2017 Peter Mikkelsen ;;; ;;; This file is part of GNU Guix. ;;; @@ -5380,3 +5381,35 @@ enables you to easily define search engines, bind them to keybindings, and query them from the comfort of your editor.") (home-page "https://github.com/hrs/engine-mode") (license license:gpl3+))) + +(define-public emacs-prop-menu + (package + (name "emacs-prop-menu") + (version "0.1.2") + (source + (origin + (method url-fetch) + (uri (string-append + "http://stable.melpa.org/packages/prop-menu-" + version ".el")) + (sha256 + (base32 + "01bk4sjafzz7gqrkv9jg0pa85qr34vbk3q8ga2b0m61bndywzgpr")))) + (build-system emacs-build-system) + (home-page + "https://github.com/david-christiansen/prop-menu-el") + (synopsis + "Create and display a context menu based on text and overlay properties") + (description + "This is a library for computing context menus based on text +properties and overlays. The intended use is to have tools that +annotate source code and others that use these annotations, without +requiring a direct coupling between them, but maintaining +discoverability. + +Major modes that wish to use this library should first define an +appropriate value for @code{prop-menu-item-functions}. Then, they should +bind @code{prop-menu-by-completing-read} to an appropriate +key. Optionally, a mouse pop-up can be added by binding +@code{prop-menu-show-menu} to a mouse event.") + (license license:gpl3+))) -- 2.14.1