GNU bug report logs -
#26678
[PATCH] gnu: Add emacs-gnuplot-mode.
Previous Next
Reported by: Arun Isaac <arunisaac <at> systemreboot.net>
Date: Thu, 27 Apr 2017 10:27:01 UTC
Severity: normal
Tags: patch
Done: Arun Isaac <arunisaac <at> systemreboot.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26678 in the body.
You can then email your comments to 26678 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#26678
; Package
guix-patches
.
(Thu, 27 Apr 2017 10:27:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Arun Isaac <arunisaac <at> systemreboot.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 27 Apr 2017 10:27:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/emacs.scm (emacs-gnuplot-mode): New variable.
---
gnu/packages/emacs.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 14d851184..b5307f56a 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -4519,3 +4519,33 @@ It should enable you to implement low-level X11 applications.")
(description "EXWM is a full-featured tiling X window manager for Emacs
built on top of XELB.")
(license license:gpl3+)))
+
+(define-public emacs-gnuplot-mode
+ (package
+ (name "emacs-gnuplot-mode")
+ (version "0.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/bruceravel/gnuplot-mode/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0glzymrn138lwig7p4cj17x4if5jisr6l4g6wcbxisqkqgc1h01i"))))
+ (build-system gnu-build-system)
+ (native-inputs `(("emacs" ,emacs-minimal)))
+ (arguments
+ `(#:configure-flags
+ (list (string-append "EMACS=" (assoc-ref %build-inputs "emacs")
+ "/bin/emacs")
+ (string-append "--with-lispdir="
+ (assoc-ref %outputs "out")
+ "/share/emacs/site-lisp/guix.d/gnuplot-mode-"
+ ,version))))
+ (home-page "https://github.com/bruceravel/gnuplot-mode")
+ (synopsis "Emacs major mode for interacting with gnuplot")
+ (description "@code{emacs-gnuplot-mode} is an emacs major mode for
+interacting with gnuplot.")
+ (license license:gpl2+)))
--
2.12.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26678
; Package
guix-patches
.
(Sat, 29 Apr 2017 14:12:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 26678 <at> debbugs.gnu.org (full text, mbox):
Arun Isaac (2017-04-27 15:55 +0530) wrote:
> * gnu/packages/emacs.scm (emacs-gnuplot-mode): New variable.
> ---
> gnu/packages/emacs.scm | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
Thanks! The patch looks good to me, the only thing: it would be good to
generate "…-autoloads.el" file (see below) to make "M-x gnuplot-mode"
available right away, otherwise a user has to adjust ".emacs" to
autoload it.
> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
> index 14d851184..b5307f56a 100644
> --- a/gnu/packages/emacs.scm
> +++ b/gnu/packages/emacs.scm
> @@ -4519,3 +4519,33 @@ It should enable you to implement low-level X11 applications.")
> (description "EXWM is a full-featured tiling X window manager for Emacs
> built on top of XELB.")
> (license license:gpl3+)))
> +
> +(define-public emacs-gnuplot-mode
> + (package
> + (name "emacs-gnuplot-mode")
BTW this package is called "gnuplot" on MELPA, because there is another
"gnuplot-mode" (also available on MELPA):
https://github.com/mkmcc/gnuplot-mode
Perhaps we should stick to the MELPA names, otherwise it may be
confusing if we call this package "gnuplot-mode", WDYT?
> + (version "0.7.0")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append
> + "https://github.com/bruceravel/gnuplot-mode/archive/"
> + version ".tar.gz"))
> + (file-name (string-append name "-" version ".tar.gz"))
> + (sha256
> + (base32
> + "0glzymrn138lwig7p4cj17x4if5jisr6l4g6wcbxisqkqgc1h01i"))))
> + (build-system gnu-build-system)
> + (native-inputs `(("emacs" ,emacs-minimal)))
> + (arguments
> + `(#:configure-flags
> + (list (string-append "EMACS=" (assoc-ref %build-inputs "emacs")
> + "/bin/emacs")
> + (string-append "--with-lispdir="
> + (assoc-ref %outputs "out")
> + "/share/emacs/site-lisp/guix.d/gnuplot-mode-"
> + ,version))))
To generate "autoloads.el", the 'arguments' could be written like this:
(arguments
(let ((elisp-dir (string-append "/share/emacs/site-lisp/guix.d"
"/gnuplot-mode-" version)))
`(#:modules ((guix build gnu-build-system)
(guix build utils)
(guix build emacs-utils))
#:imported-modules (,@%gnu-build-system-modules
(guix build emacs-utils))
#:configure-flags
(list (string-append "EMACS=" (assoc-ref %build-inputs "emacs")
"/bin/emacs")
(string-append "--with-lispdir=" %output ,elisp-dir))
#:phases
(modify-phases %standard-phases
(add-after 'install 'generate-autoloads
(lambda* (#:key outputs #:allow-other-keys)
(emacs-generate-autoloads
"gnuplot"
(string-append (assoc-ref outputs "out") ,elisp-dir))
#t))))))
> + (home-page "https://github.com/bruceravel/gnuplot-mode")
> + (synopsis "Emacs major mode for interacting with gnuplot")
> + (description "@code{emacs-gnuplot-mode} is an emacs major mode for
> +interacting with gnuplot.")
> + (license license:gpl2+)))
--
Alex
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26678
; Package
guix-patches
.
(Mon, 01 May 2017 14:10:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 26678 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/emacs.scm (emacs-gnuplot): New variable.
---
gnu/packages/emacs.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 4d524ece7..2484fac9c 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -4519,3 +4519,45 @@ It should enable you to implement low-level X11 applications.")
(description "EXWM is a full-featured tiling X window manager for Emacs
built on top of XELB.")
(license license:gpl3+)))
+
+(define-public emacs-gnuplot
+ (package
+ (name "emacs-gnuplot")
+ (version "0.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/bruceravel/gnuplot-mode/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0glzymrn138lwig7p4cj17x4if5jisr6l4g6wcbxisqkqgc1h01i"))))
+ (build-system gnu-build-system)
+ (native-inputs `(("emacs" ,emacs-minimal)))
+ (arguments
+ (let ((elisp-dir (string-append "/share/emacs/site-lisp/guix.d"
+ "/gnuplot-" version)))
+ `(#:modules ((guix build gnu-build-system)
+ (guix build utils)
+ (guix build emacs-utils))
+ #:imported-modules (,@%gnu-build-system-modules
+ (guix build emacs-utils))
+ #:configure-flags
+ (list (string-append "EMACS=" (assoc-ref %build-inputs "emacs")
+ "/bin/emacs")
+ (string-append "--with-lispdir=" %output ,elisp-dir))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'generate-autoloads
+ (lambda* (#:key outputs #:allow-other-keys)
+ (emacs-generate-autoloads
+ "gnuplot"
+ (string-append (assoc-ref outputs "out") ,elisp-dir))
+ #t))))))
+ (home-page "https://github.com/bruceravel/gnuplot-mode")
+ (synopsis "Emacs major mode for interacting with gnuplot")
+ (description "@code{emacs-gnuplot} is an emacs major mode for interacting
+with gnuplot.")
+ (license license:gpl2+)))
--
2.12.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26678
; Package
guix-patches
.
(Mon, 01 May 2017 14:14:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 26678 <at> debbugs.gnu.org (full text, mbox):
I have made all suggested changes. WDYT?
Sorry for the rather late reply. I was travelling over the weekend.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26678
; Package
guix-patches
.
(Tue, 02 May 2017 09:18:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 26678 <at> debbugs.gnu.org (full text, mbox):
Arun Isaac (2017-05-01 19:43 +0530) wrote:
> I have made all suggested changes. WDYT?
I think this patch is ready now, thank you!
> Sorry for the rather late reply. I was travelling over the weekend.
No problem, my replies are always late :-)
--
Alex
Reply sent
to
Arun Isaac <arunisaac <at> systemreboot.net>
:
You have taken responsibility.
(Wed, 03 May 2017 19:27:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Arun Isaac <arunisaac <at> systemreboot.net>
:
bug acknowledged by developer.
(Wed, 03 May 2017 19:27:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 26678-done <at> debbugs.gnu.org (full text, mbox):
Pushed!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 01 Jun 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 105 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.