### Eclipse Workspace Patch 1.0
#P drupal-cvs
Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.541
diff -u -r1.541 comment.module
--- modules/comment/comment.module	30 Apr 2007 17:03:24 -0000	1.541
+++ modules/comment/comment.module	8 May 2007 03:07:20 -0000
@@ -1453,7 +1453,13 @@
   global $user;
 
   $op = isset($_POST['op']) ? $_POST['op'] : '';
-
+  
+  if (!$user->uid && variable_get('comment_anonymous', COMMENT_ANONYMOUS_MAYNOT_CONTACT) != COMMENT_ANONYMOUS_MAYNOT_CONTACT) {
+    drupal_add_js('misc/jquery.cookie.js');
+    drupal_add_js(drupal_get_path('module', 'comment').'/comment.js');
+  }
+  
+  
   if ($user->uid) {
     if (!empty($edit['cid']) && user_access('administer comments')) {
       if (!empty($edit['author'])) {
Index: misc/jquery.cookie.js
===================================================================
RCS file: misc/jquery.cookie.js
diff -N misc/jquery.cookie.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ misc/jquery.cookie.js	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,2 @@
+// $Id:$
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('q.5=J(a,b,c){4(7 b!=\'B\'){c=c||{};4(b===p){b=\'\';c.3=-1}2 d=\'\';4(c.3&&(7 c.3==\'s\'||c.3.u)){2 e;4(7 c.3==\'s\'){e=E A();e.z(e.y()+(c.3*w*o*o*v))}n{e=c.3}d=\'; 3=\'+e.u()}2 f=c.m?\'; m=\'+c.f:\'\';2 g=c.9?\'; 9=\'+c.g:\'\';2 h=c.r?\'; r\':\'\';6.5=[a,\'=\',G(b),d,f,g,h].F(\'\')}n{2 j=p;4(6.5&&6.5!=\'\'){2 k=6.5.D(\';\');C(2 i=0;i<k.8;i++){2 l=q.x(k[i]);4(l.t(0,a.8+1)==(a+\'=\')){j=H(l.t(a.8+1));I}}}K j}};',47,47,'||var|expires|if|cookie|document|typeof|length|domain|||||||||||||path|else|60|null|jQuery|secure|number|substring|toUTCString|1000|24|trim|getTime|setTime|Date|undefined|for|split|new|join|encodeURIComponent|decodeURIComponent|break|function|return'.split('|'),0,{}))
Index: modules/comment/comment.js
===================================================================
RCS file: modules/comment/comment.js
diff -N modules/comment/comment.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/comment/comment.js	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,15 @@
+// $Id: $
+if (Drupal.jsEnabled) {
+  $(document).ready(function() {
+    $("#comment-form input[@name=name]").val($.cookie('comment_info_name'));
+    $("#comment-form input[@name=mail]").val($.cookie('comment_info_email'));
+    $("#comment-form input[@name=homepage]").val($.cookie('comment_info_homepage'));
+    $("form#comment-form input[@type=submit]").each( function() {
+      $(this).click(function() {
+        $.cookie('comment_info_name', $("#comment-form input[@name=name]").val(), { expires: 365 });
+        $.cookie('comment_info_email', $("#comment-form input[@name=mail]").val(), { expires: 365 });
+        $.cookie('comment_info_homepage', $("#comment-form input[@name=homepage]").val(), { expires: 365 });
+      });
+    });
+  });
+};
