Worked for me too. Thanks a lot, that is very handy!<br><br>Laurent<br><br><div class="gmail_quote">On Mon, Jan 10, 2011 at 13:48, Neil Van Dyke <span dir="ltr"><<a href="mailto:neil@neilvandyke.org">neil@neilvandyke.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">At last, a legitimate use for the fact that a PLaneT "require" alone can execute arbitrary code. :)<br>
<br>
In case anyone is wondering, that "require" form will of course make sure that the PLaneT package is installed, and then it will go and try to find your Emacs initialization file and add/update a block of code in it like this:<br>
<br>
;;BEGIN-RACKET-SCRIBBLE-EMACS-INSTALL<br>
;; Updated: 2011-01-10T12:37:53Z<br>
(condition-case err<br>
(require 'scribble "/home/user/.racket/planet/300/5.0.2/cache/neil/scribble-emacs.plt/1/1/scribble")<br>
(error (message "Could not load Scribble Emacs: %s" err)))<br>
;;END-RACKET-SCRIBBLE-EMACS-INSTALL<br>
<br>
It sure beats trying to give non-Emacs-power-users instructions on how to install a package for their particular Emacs setup. I'll probably do this same thing for Quack when I get a chance.<br>
<br>
<br>
Noel Welsh wrote at 01/10/2011 07:27 AM:<div class="im"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Not brave but reckless. Worked for me.<br>
</blockquote>
<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><div class="im">
On Sun, Jan 9, 2011 at 3:50 PM, Neil Van Dyke <<a href="mailto:neil@neilvandyke.org" target="_blank">neil@neilvandyke.org</a>> wrote:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
If you're feeling brave, evaluating the following expression will install<br>
the package and also try to modify your ".emacs" file appropriately:<br>
<br>
(require (planet neil/scribble-emacs/install-in-my-emacs))<br>
</blockquote></div></blockquote><font color="#888888">
<br>
-- <br>
<a href="http://www.neilvandyke.org/" target="_blank">http://www.neilvandyke.org/</a></font><div><div></div><div class="h5"><br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
</div></div></blockquote></div><br>