GNU bug report logs -
#27793
[PATCH 0/2] Update YASnippet, add snippet collection
Previous Next
Reported by: Kyle Meyer <kyle <at> kyleam.com>
Date: Sat, 22 Jul 2017 22:56:02 UTC
Severity: normal
Tags: patch
Done: ludo <at> gnu.org (Ludovic Courtès)
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 27793 in the body.
You can then email your comments to 27793 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#27793
; Package
guix-patches
.
(Sat, 22 Jul 2017 22:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kyle Meyer <kyle <at> kyleam.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 22 Jul 2017 22:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
gnu: emacs-yasnippet: Upgrade to 0.12.0.
gnu: Add emacs-yasnippet-snippets.
gnu/packages/emacs.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 58 insertions(+), 2 deletions(-)
--
2.13.3
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27793
; Package
guix-patches
.
(Sat, 22 Jul 2017 22:58:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 27793 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/emacs.scm (emacs-yasnippet): Upgrade to 0.12.0.
[source]: Remove an uninstalled directory from yas-snippet-dirs.
---
gnu/packages/emacs.scm | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 43de13057..c7b921480 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -4160,7 +4160,7 @@ mode-line.")
(define-public emacs-yasnippet
(package
(name "emacs-yasnippet")
- (version "0.11.0")
+ (version "0.12.0")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/joaotavora/yasnippet/"
@@ -4168,7 +4168,18 @@ mode-line.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
- "15di6mkkf09b7qddpsrm0qln02hji3sx8blya5jxssi9wxxx9iq5"))))
+ "1yqiprighgqz1hsslph50cy09xxqabc06jffrnjcsdf6nj70xlkc"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; YASnippet expects a "snippets" subdirectory in the same
+ ;; directory as yasnippet.el, but we don't install it
+ ;; because it's a git submodule pointing to an external
+ ;; repository. Adjust `yas-snippet-dirs' to prevent
+ ;; warnings about a missing directory.
+ (substitute* "yasnippet.el"
+ (("^ +'yas-installed-snippets-dir\\)\\)\n")
+ "))\n"))))))
(build-system emacs-build-system)
(home-page "https://github.com/joaotavora/yasnippet")
(synopsis "Yet another snippet extension for Emacs")
--
2.13.3
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27793
; Package
guix-patches
.
(Sat, 22 Jul 2017 22:58:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 27793 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/emacs.scm (emacs-yasnippet-snippets): New variable.
---
gnu/packages/emacs.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index c7b921480..5f5b6fc2e 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -4188,6 +4188,51 @@ mode-line.")
abbreviation and automatically expand it into function templates.")
(license license:gpl3+)))
+(define-public emacs-yasnippet-snippets
+ (let ((commit "885050d34737e2fb36a3e7759d60c09347bd4ce0")
+ (revision "1"))
+ (package
+ (name "emacs-yasnippet-snippets")
+ (version (string-append "1-" revision "." (string-take commit 8)))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/AndreaCrotti/yasnippet-snippets")
+ (commit commit)))
+ (file-name (string-append name "-" version "-checkout"))
+ (sha256
+ (base32
+ "1m935zgglw0iakzrixld5rcjz3wnj84f8wy2mvc3pggjri9l0qr9"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((ice-9 ftw)
+ (ice-9 regex)
+ (guix build utils))
+ #:builder
+ (begin
+ (use-modules (ice-9 ftw)
+ (ice-9 regex)
+ (guix build utils))
+ (with-directory-excursion (assoc-ref %build-inputs "source")
+ (for-each (lambda (dir)
+ (copy-recursively
+ dir
+ (string-append %output
+ "/share/emacs/yasnippet-snippets/"
+ dir)))
+ (scandir "." (lambda (fname)
+ (and (string-match "-mode$" fname)
+ (directory-exists? fname)))))))))
+ (home-page "https://github.com/AndreaCrotti/yasnippet-snippets")
+ (synopsis "Collection of YASnippet snippets for many languages")
+ (description
+ "Provides Andrea Crotti's collection of YASnippet snippets. After installation,
+the snippets will be in \"~/.guix-profile/share/emacs/yasnippet-snippets/\".
+To make YASnippet aware of these snippets, add the above directory to
+@code{yas-snippet-dirs}.")
+ (license license:expat))))
+
(define-public emacs-memoize
(package
(name "emacs-memoize")
--
2.13.3
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Tue, 01 Aug 2017 13:36:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kyle Meyer <kyle <at> kyleam.com>
:
bug acknowledged by developer.
(Tue, 01 Aug 2017 13:36:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 27793-done <at> debbugs.gnu.org (full text, mbox):
Kyle Meyer <kyle <at> kyleam.com> skribis:
> gnu: emacs-yasnippet: Upgrade to 0.12.0.
> gnu: Add emacs-yasnippet-snippets.
>
> gnu/packages/emacs.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 58 insertions(+), 2 deletions(-)
Applied both, thank you!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 30 Aug 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 237 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.