From patchwork Tue Apr 2 13:12:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Zancanaro X-Patchwork-Id: 3145 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 1962B16E11; Tue, 2 Apr 2019 14:17:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 953D116E0E for ; Tue, 2 Apr 2019 14:17:13 +0100 (BST) Received: from localhost ([127.0.0.1]:55394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBJHt-0003LF-3Y for patchwork@mira.cbaines.net; Tue, 02 Apr 2019 09:17:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBJDs-0008Bj-P8 for guix-patches@gnu.org; Tue, 02 Apr 2019 09:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBJDr-0007OO-Gq for guix-patches@gnu.org; Tue, 02 Apr 2019 09:13:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55073) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBJDq-0007LK-MB for guix-patches@gnu.org; Tue, 02 Apr 2019 09:13:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBJDp-000063-TI for guix-patches@gnu.org; Tue, 02 Apr 2019 09:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35081] [PATCH] gnu: Add emacs-protobuf-mode. Resent-From: Carlo Zancanaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 02 Apr 2019 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35081 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35081@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1554210769342 (code B ref -1); Tue, 02 Apr 2019 13:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Apr 2019 13:12:49 +0000 Received: from localhost ([127.0.0.1]:40384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBJDd-00005S-3V for submit@debbugs.gnu.org; Tue, 02 Apr 2019 09:12:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBJDa-00005D-Ji for submit@debbugs.gnu.org; Tue, 02 Apr 2019 09:12:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:51065) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBJDV-0006Up-Cv for submit@debbugs.gnu.org; Tue, 02 Apr 2019 09:12:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBJDU-0007q7-62 for guix-patches@gnu.org; Tue, 02 Apr 2019 09:12:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBJDT-0006KU-2A for guix-patches@gnu.org; Tue, 02 Apr 2019 09:12:40 -0400 Received: from zancanaro.com.au ([45.76.117.151]:58406) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBJDS-00069O-Du for guix-patches@gnu.org; Tue, 02 Apr 2019 09:12:38 -0400 Received: from jolteon (210-1-202-160-cpe.spintel.net.au [210.1.202.160]) by zancanaro.com.au (Postfix) with ESMTPSA id 1877426464 for ; Tue, 2 Apr 2019 13:12:33 +0000 (UTC) User-agent: mu4e 1.0; emacs 26.1 From: Carlo Zancanaro Date: Wed, 03 Apr 2019 00:12:32 +1100 Message-ID: <875zrw360v.fsf@zancanaro.id.au> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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 Attached is a patch to add emacs-protobuf-mode, a major mode for editing Protocol Buffer source files. I opted to add it in protobuf.scm instead of emacs-xyz.scm because it comes bundled with the protobuf source, and thus can share a source field. From de6067629a17c5884cc9e369a9ce0d4eafdd9f6a Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 28 Dec 2018 18:46:21 +1100 Subject: [PATCH] gnu: Add emacs-protobuf-mode. To: guix-patches@gnu.org * gnu/packages/protobuf.scm (emacs-protobuf-mode): New variable. --- gnu/packages/protobuf.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm index 73169216b4..3299299705 100644 --- a/gnu/packages/protobuf.scm +++ b/gnu/packages/protobuf.scm @@ -27,6 +27,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix build-system emacs) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages compression) #:use-module (gnu packages gcc) @@ -208,4 +209,21 @@ mechanism for serializing structured data.") (define-public python2-protobuf (package-with-python2 python-protobuf)) + +(define-public emacs-protobuf-mode + (package + (name "emacs-protobuf-mode") + (version (package-version protobuf)) + (source (package-source protobuf)) + (build-system emacs-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'set-emacs-load-path 'change-working-directory + (lambda _ (chdir "editors") #t))))) + (home-page "https://github.com/google/protobuf") + (synopsis "Protocol buffers major mode for Emacs") + (description + "This package provides an Emacs major mode for editing Protocol Buffer +source files.") + (license license:bsd-3))) -- 2.21.0