From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eljZT-0005Rh-8n for guix-patches@gnu.org; Tue, 13 Feb 2018 18:01:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eljZO-0002nD-RS for guix-patches@gnu.org; Tue, 13 Feb 2018 18:01:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:34016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eljZO-0002n3-Lz for guix-patches@gnu.org; Tue, 13 Feb 2018 18:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eljZO-0004Y4-B2 for guix-patches@gnu.org; Tue, 13 Feb 2018 18:01:02 -0500 Subject: [bug#30333] [PATCH] gnu: Add emacs-scratch-el. Resent-Message-ID: From: Marius Bakke In-Reply-To: <20180203104703.16476-1-go.wigust@gmail.com> References: <20180203104703.16476-1-go.wigust@gmail.com> Date: Wed, 14 Feb 2018 00:00:57 +0100 Message-ID: <87po58wl3q.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: Oleg Pykhalov , 30333@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Oleg Pykhalov writes: > * gnu/packages/emacs.scm (emacs-scratch-el): New public variable. [...] > diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm > index 9523f14da..69d18b060 100644 > --- a/gnu/packages/emacs.scm > +++ b/gnu/packages/emacs.scm > @@ -6940,3 +6940,41 @@ navigation with the grails mode.") > @code{org-tree-slide-mode} to enter the slideshow mode, and then @kbd{C-= >} and > @kbd{C-<} to jump to the next and previous slide.") > (license license:gpl3+)))) > + > +(define-public emacs-scratch-el > + (let ((commit "2cdf2b841ce7a0987093f65b0cc431947549f897") > + (revision "1")) > + (package > + (name "emacs-scratch-el") > + (version (string-append "1.2" revision "." > + (string-take commit 7))) You can use (git-version "1.2" revision commit) here. (by the way, where does 1.2 come from?) > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/ieure/scratch-el.git") > + (commit commit))) > + (file-name (string-append name "-" version "-checkout")) Similarly, prefer (git-file-name ...). > + (sha256 > + (base32 > + "0wscsndynjmnliajqaz28r1ww81j8wh84zwaaswx51abhwgl0idf"= )))) > + (build-system emacs-build-system) > + (native-inputs > + `(("texinfo" ,texinfo))) > + (arguments > + '(#:phases > + (modify-phases %standard-phases > + (add-after 'install 'install-doc > + (lambda* (#:key outputs #:allow-other-keys) > + (unless (invoke "makeinfo" "scratch.texi") > + (error "makeinfo failed")) > + (install-file "scratch.info" > + (string-append (assoc-ref outputs "out") > + "/share/info"))))))) (install-file ...) has an unspecified return value, so return #t here. > + (home-page "https://github.com/ieure/scratch-el/") > + (synopsis "Create scratch buffers with the same mode current buffe= r") s/same mode/same mode as/ Other than that LGTM. > + (description "Scratch is an extension to Emacs that enables one to= create > +scratch buffers that are in the same mode as the current buffer. This is > +notably useful when working on code in some language; you may grab code = into a > +scratch buffer, and, by virtue of this extension, do so using the Emacs > +formatting rules for that language.") > + (license license:bsd-2)))) > --=20 > 2.15.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqDbikACgkQoqBt8qM6 VPqdJgf/aa9CO+e4b9cMNrLA9Iu6YNNMAw57aivt+atwxh9mELhAaYkmVEcgm2eq g0gJd1bAu7V9AnEUzGOOLZJY8mqdMFEMMFHlcv8RBQNIgkpP5TThLhDQFaVA8ACC rrb50fhOIgaQSUS4maSkHmDxEn76tIkQR0DB0uABC9HS/ICn4BRJHVHVg3v8JUHf /41iF63osQH8Fitdmm/GZXIXI5h3zCDaVaQCZA8HcloZJCBIva2F887auw0HC3iH iO2Y/rDb9jzw6Q8Uoe3yz7wHUGiP4ZXmT4hj6be4izndyLiAKAsajgiW0/PiUTKW h3gRHWMWUKrSJIlm8Pws9tVY9x0K4g== =11fI -----END PGP SIGNATURE----- --=-=-=--