From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Having trouble packaging DefaultEncrypt for Emacs Date: Sat, 08 Apr 2017 17:21:40 -0700 Message-ID: <87k26uph0r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cx0by-0003xj-6L for guix-devel@gnu.org; Sat, 08 Apr 2017 20:21:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cx0bw-0003He-UO for guix-devel@gnu.org; Sat, 08 Apr 2017 20:21:46 -0400 Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:35616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cx0bw-0003HO-LM for guix-devel@gnu.org; Sat, 08 Apr 2017 20:21:44 -0400 Received: by mail-pg0-x22b.google.com with SMTP id 81so89123165pgh.2 for ; Sat, 08 Apr 2017 17:21:44 -0700 (PDT) Received: from garuda ([2601:602:9d02:4725:4e0f:6eff:fef6:70b9]) by smtp.gmail.com with ESMTPSA id b185sm5106739pfa.61.2017.04.08.17.21.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Apr 2017 17:21:41 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I'm trying to package DefaultEncrypt: https://www.emacswiki.org/emacs/DefaultEncrypt I've made a package definition (see attached patch), and it builds without error. I've installed it into my user profile. Per the documentation, I've added the following to my ~/.emacs: (require 'jl-encrypt) However, when I start Emacs, I get the following warning: =2D-8<---------------cut here---------------start------------->8--- Warning (initialization): An error occurred while loading =E2=80=98/home/ma= rusich/.emacs=E2=80=99: File error: Cannot open load file, No such file or directory, jl-encrypt =2D-8<---------------cut here---------------end--------------->8--- Why is this happening? How can I fix it? I'm still a bit of an Emacs newbie, so maybe there's an obvious solution I'm unaware of. I've also noticed that the elisp file gets installed with the name "jl-encrypt.el.el", which seems weird, but I don't know if that's related to the preceding issue: =2D-8<---------------cut here---------------start------------->8--- $ tree -a $(./pre-inst-env guix build --rounds=3D2 --keep-failed emacs-defa= ult-encrypt) /gnu/store/3dcbalb6zgc7a7iizni3hyzy6llb6c6p-emacs-default-encrypt-4.3 =E2=94=94=E2=94=80=E2=94=80 share =E2=94=94=E2=94=80=E2=94=80 emacs =E2=94=94=E2=94=80=E2=94=80 site-lisp =E2=94=94=E2=94=80=E2=94=80 guix.d =E2=94=94=E2=94=80=E2=94=80 default-encrypt-4.3 =E2=94=9C=E2=94=80=E2=94=80 default-encrypt-autoloads.el =E2=94=9C=E2=94=80=E2=94=80 jl-encrypt.el.el =E2=94=94=E2=94=80=E2=94=80 jl-encrypt.el.elc =2D-8<---------------cut here---------------end--------------->8--- Why does the ".el" suffix appear twice? Is it causing the preceding problem? I tried changing (require 'jl-encrypt) to (require 'jl-encrypt.el) but it didn't fix the problem. I don't know why the require statement is failing, and I don't know why the elisp file is being installed with an ".el.el" suffix. I'd love to use this module and package it for everyone, so if you have any advice, please let me know. Thank you in advance! =2D-=20 Chris --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-emacs-default-encrypt.patch Content-Transfer-Encoding: quoted-printable From=20f77c1b669d91fb5ff4421da544fb2e6870ff9f56 Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sat, 8 Apr 2017 15:16:52 -0700 Subject: [PATCH] gnu: Add emacs-default-encrypt. * gnu/packages/emacs.scm (emacs-default-encrypt): New variable. =2D-- gnu/packages/emacs.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 3db31f207..63d9da03e 100644 =2D-- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -4057,3 +4057,30 @@ jQuery and Bootstrap resources included via osscdn.") (description "This Emacs package highlights the s-exp at the current position.") (license license:gpl3+))) + +(define-public emacs-default-encrypt + (package + (name "emacs-default-encrypt") + (version "4.3") + (source + (origin + (method url-fetch) + (uri (string-append + ;; A versioned, signed copy of this package is avialable on t= he + ;; home page, but 'guix download' fails to download it. + "https://github.com/emacsmirror/emacswiki.org/raw/master/jl-e= ncrypt.el")) + (sha256 + (base32 + "16i3rlfp3jxlqvndn8idylhmczync3gwmy8a019v29vyr48rnnr0")))) + (build-system emacs-build-system) + (home-page "https://www.informationelle-selbstbestimmung-im-internet.d= e/Emacs.html") + (synopsis "Automatically encrypt and sign Gnus messages") + (description + "DefaultEncrypt is designed to be used with Gnus. It automatically +encrypts messages that you send (e.g., email) when public keys for all +recipients are available, and it protects you from accidentally sending +un-encrypted messages. It can also be configured to automatically sign +messages that you send. For details and instructions on how to use +DefaultEncrypt, please refer to the home page or read the comments in the +source file, @file{jl-encrypt.el}.") + (license license:gpl3+))) =2D-=20 2.12.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAljpfpQACgkQ3UCaFdgi Rp2AbxAAlu/drPTFaJcA0MWDW8a/FAGREGELPTVK4b/YivK/RQnEtkUZDpjA5ivw obHAgb3AeINrWFxlaChMnrE+t05pq8t0YTxl8JH0clT+RQgc7f4vjgIvoQJxZyCY +JqwqiT7nNDmCOLiFLgERFsuoX03pKR6x4TjVSEZPjCBVO76AaxDuKIql/AnSKw+ lIfgVt+Ntt4dad45EKFPzcfjOvlG+IhY3swocaUkshmOz3hicLdnMUyEPMuZzWzo KIcnLBhmcHVxCAFF8GkV+fvr+RA4l5QkOAwKN+hmmUwQcNtA0kqKoeGNdi0Hr6Ur EG0hqlY06L8S76HkFB2Ur3vCKUibEy2i8tNOwoedGVpmiIJf+mcTpXGqHkCNjPaY /XwQWFbPdTWWb4mxAj/2X1otIDNYOGyLbP6UiWvuECjNjC2Uh+Cg8i8wm2ECOpIc R8AKF64CM6EeBya8DuyMbLikbAJMqmAE2FtKBIuGU5SjoxTBP3Yue9w8CHotUPvo Ep69aubnsXiXeJqHqf5fQmeZ+s/ZtR4AEKhchvL0jAZ9/Zv4HcATk8hIJhIVUEqi n963npuOGNwE3FHap1PDREsrD6g3jX2YF5LbIgoNiNOYrJtDXNwjBXn2HG9Efire +p8liU7wosXFpFExfMd5EkXi0f1D9SlZLLxgFZ36XFrd4uSG3LY= =LeOh -----END PGP SIGNATURE----- --==-=-=--