Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Can't connect to the new server in gnus-server-mode
@ 2002-04-12  3:19 Daiki Ueno
  2002-04-12  3:44 ` Katsumi Yamaoka
  0 siblings, 1 reply; 2+ messages in thread
From: Daiki Ueno @ 2002-04-12  3:19 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

Every time, from the *Server* buffer, I attempt to register the new
server with some attributes (such as nntp-address, nntp-port-number)
which are disregarded and opening the server tends to fail.

The reason for that seems that `gnus-server-method-cache' needs to be
updated when finished editing the server, since it takes precedence
over `gnus-server-alist' there.

Here is the patch to fix this.

2002-04-12  Daiki Ueno  <ueno@unixuser.org>

	* gnus-srvr.el (gnus-server-set-info): Clear
	`gnus-server-method-cache' when `gnus-server-alist' is changed.


[-- Attachment #2: gnus-srvr.el.diff --]
[-- Type: application/octet-stream, Size: 854 bytes --]

Index: lisp/gnus-srvr.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-srvr.el,v
retrieving revision 6.23
diff -u -F^( -r6.23 gnus-srvr.el
--- lisp/gnus-srvr.el	2002/02/20 00:15:31	6.23
+++ lisp/gnus-srvr.el	2002/04/12 03:21:47
@@ -380,7 +380,11 @@ (defun gnus-server-set-info (server info
      (concat "(gnus-server-set-info \"" server "\" '"
 	     (prin1-to-string info) ")"))
     (let* ((server (nth 1 info))
-	   (entry (assoc server gnus-server-alist)))
+	   (entry (assoc server gnus-server-alist))
+	   (cached (assoc server gnus-server-method-cache)))
+      (if cached
+	  (setq gnus-server-method-cache
+		(delq cached gnus-server-method-cache)))
       (if entry (setcdr entry info)
 	(setq gnus-server-alist
 	      (nconc gnus-server-alist (list (cons server info))))))))

[-- Attachment #3: Type: text/plain, Size: 25 bytes --]


Regards,
-- 
Daiki Ueno

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Can't connect to the new server in gnus-server-mode
  2002-04-12  3:19 [PATCH] Can't connect to the new server in gnus-server-mode Daiki Ueno
@ 2002-04-12  3:44 ` Katsumi Yamaoka
  0 siblings, 0 replies; 2+ messages in thread
From: Katsumi Yamaoka @ 2002-04-12  3:44 UTC (permalink / raw)
  Cc: ding

>>>>> In <ff343918-c906-4721-91fc-360773536169@deisui.org> 
>>>>>	Daiki Ueno <ueno@unixuser.org> wrote:

> Every time, from the *Server* buffer, I attempt to register the new
> server with some attributes (such as nntp-address, nntp-port-number)
> which are disregarded and opening the server tends to fail.

> The reason for that seems that `gnus-server-method-cache' needs to be
> updated when finished editing the server, since it takes precedence
> over `gnus-server-alist' there.

> Here is the patch to fix this.

Thank you for the patch.  I've confirmed the problems are solved
and I've applied it in Gnus CVS.
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-12  3:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12  3:19 [PATCH] Can't connect to the new server in gnus-server-mode Daiki Ueno
2002-04-12  3:44 ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).