From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87179 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-cloud work Date: Wed, 27 Jul 2016 10:00:20 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8760rrgozv.fsf@lifelogs.com> References: <8737nukab5.fsf@ericabrahamsen.net> <87a8i2n2i7.fsf@lifelogs.com> <878txm6rsy.fsf@ericabrahamsen.net> <87poqxjls5.fsf@lifelogs.com> <87shvsj1lg.fsf@lifelogs.com> <87lh1eg6s6.fsf@lifelogs.com> <87d1m8bh5z.fsf@lifelogs.com> <86wpkcaym2.fsf@dod.no> <86mvl7f9eh.fsf@dod.no> <86invvf96u.fsf@dod.no> <86d1m3f60a.fsf@dod.no> <87oa5l50uw.fsf@lifelogs.com> <87fuqx7gwz.fsf@linux-m68k.org> <87a8h5jgl0.fsf@lifelogs.com> <86a8h47r32.fsf@dod.no> <87zip4iizk.fsf@lifelogs.com> <867fc8jl69.fsf@dod.no> <8637mwjkjk.fsf@dod.no> <87fuqwgp1q.fsf@lifelogs.com> <86vazshzbp.fsf@dod.no> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469628097 21448 80.91.229.3 (27 Jul 2016 14:01:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2016 14:01:37 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M35399@lists.math.uh.edu Wed Jul 27 16:01:24 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bSPOm-0003cy-5d for ding-account@gmane.org; Wed, 27 Jul 2016 16:01:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.86_2) (envelope-from ) id 1bSPNy-0000R0-Ic; Wed, 27 Jul 2016 09:00:34 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bSPNv-0000QO-1Y for ding@lists.math.uh.edu; Wed, 27 Jul 2016 09:00:31 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_2) (envelope-from ) id 1bSPNs-0005YJ-9t for ding@lists.math.uh.edu; Wed, 27 Jul 2016 09:00:30 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bSPNq-0002bv-UH for ding@gnus.org; Wed, 27 Jul 2016 16:00:26 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bSPNq-00039r-9J for ding@gnus.org; Wed, 27 Jul 2016 16:00:26 +0200 Original-Received: from c-98-229-60-157.hsd1.ma.comcast.net ([98.229.60.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jul 2016 16:00:26 +0200 Original-Received: from tzz by c-98-229-60-157.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jul 2016 16:00:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-60-157.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:rD8FP0ERpwvpT9jo0Pf9OKSfyXI= X-Spam-Score: -4.2 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87179 Archived-At: On Tue, 26 Jul 2016 23:19:38 +0200 Steinar Bang wrote: >>>>>> Ted Zlatanov : >> That seems like a bug or misconfiguration, it's trying to create the >> cloud storage group on a NNTP server. >> What's your `gnus-cloud-method'? Is it an NNTP or an IMAP server? SB> Misconfiguration, probably. SB> 'C-h v' says that gnus-cloud-method is nil. SB> Let me see what the documentation says...? Ah, gnus-cloud-method was SB> supposed to have been set by the upload using the customize facilities. SB> The variable *was* set by the upload, but perhaps not to something SB> useful...? This is what it was set to (from ~/.emacs): SB> (custom-set-variables SB> ... SB> '(gnus-cloud-method server) Use `I' again to set it from the Server buffer. Then do `M-x custom-save-all'. I don't know if the save should be automatic. Here's how I think it could work, by asking the user. What do you think? Ted diff --git a/lisp/gnus/gnus-srvr.el b/lisp/gnus/gnus-srvr.el index 66fb9ee..e83deeb 100644 --- a/lisp/gnus/gnus-srvr.el +++ b/lisp/gnus/gnus-srvr.el @@ -1156,7 +1156,13 @@ gnus-server-toggle-cloud-method-server (unless (gnus-cloud-host-acceptable-method-p server) (error "The server under point can't host the Emacs Cloud")) - (custom-set-variables '(gnus-cloud-method server)) + (when (not (string-equal gnus-cloud-method server)) + (custom-set-variables '(gnus-cloud-method server)) + ;; Note we can't use `Custom-save' here. + (when (gnus-yes-or-no-p + (format "The new cloud host server is %S now. Save your customizations (note it may save other customizations)? " + server)) + (custom-save-variables))) (when (gnus-yes-or-no-p (format "Upload Cloud data to %S now? " server)) (gnus-message 1 "Uploading all data to Emacs Cloud server %S" server) (gnus-cloud-upload-data t))))