gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install-elisp.el --- Simple Emacs Lisp installer using curl


From: Ted Zlatanov
Subject: Re: install-elisp.el --- Simple Emacs Lisp installer using curl
Date: Wed, 25 Jul 2007 14:16:48 -0400
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (darwin)

On Wed, 25 Jul 2007 23:07:07 +0900 (JST) address@hidden wrote: 

r>  Automate Emacs Lisp installation.
r>  (1) download Emacs Lisp
r>  (2) save to your repository
r>  (3) byte compile
r>  (4) load
r>  (5) show Emacs Lisp

r>  M-x install-elisp
r>  M-x install-elisp-from-emacswiki

r> For example, if you want to upgrade anything.el, you have only to issue:
r> M-x install-elisp-from-emacswiki anything.el

Neat idea.

I'm attaching a simple patch to customize the retrieval program.  Please
consider using defcustom instead of defvar, though (I used defvar to be
consistent).

Also consider security implications of downloading code from a wiki.
Maybe there could be a way for authors to publish PGP keys outside or
inside the wiki, and those keys can authenticate the code on the wiki?

Ted

Index: install-elisp.el
===================================================================
RCS file: /home/tzz/cvsroot/emacs/install-elisp.el,v
retrieving revision 1.2
diff -r1.2 install-elisp.el
88a89,90
> (defvar install-elisp-retrieval-program "curl --silent '%s'")
> 
94c96
<     (shell-command (format "curl --silent '%s'" url) buffer)
---
>     (shell-command (format install-elisp-retrieval-program url) buffer)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]