all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#3037: 23.0.92; rcirc picks incorrect connection settings
@ 2009-04-18  1:52 Chong Yidong
  2009-04-18  2:30 ` Ryan Yeske
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2009-04-18  1:52 UTC (permalink / raw)
  To: Ryan Yeske; +Cc: 3037

Hi Ryan,

Could you evaluate the bug report for RCIRC at the following URL?  Is
the patch attached in the report OK to commit?

http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3037






^ permalink raw reply	[flat|nested] 3+ messages in thread
* bug#3037: 23.0.92; rcirc picks incorrect connection settings
@ 2009-04-17 15:48 Yann Hodique
  0 siblings, 0 replies; 3+ messages in thread
From: Yann Hodique @ 2009-04-17 15:48 UTC (permalink / raw)
  To: emacs-pretest-bug

When using `rcirc' with argument (prompt for connection parameters), the
global default values for :port, :nick and :channels are proposed
instead of the server-specific ones. 

Reason is that current code tries to get properties 'port, 'nick
and 'channels, which is not correct.
Following patch fixes this issue.

Yann.

diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index f63237f..1f31284 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -375,16 +375,16 @@ If ARG is non-nil, instead prompt for connection parameters."
             (server-plist (cdr (assoc-string server rcirc-server-alist)))
             (port (read-string "IRC Port: "
                                (number-to-string
-                                (or (plist-get server-plist 'port)
+                                (or (plist-get server-plist :port)
                                     rcirc-default-port))))
             (nick (read-string "IRC Nick: "
-                               (or (plist-get server-plist 'nick)
+                               (or (plist-get server-plist :nick)
                                    rcirc-default-nick)))
             (channels (split-string
                        (read-string "IRC Channels: "
                                     (mapconcat 'identity
                                                (plist-get server-plist
-                                                          'channels)
+                                                          :channels)
                                                " "))
                        "[, ]+" t)))
        (rcirc-connect server port nick rcirc-default-user-name

-- 
"Once more the drama begins."

-The Emperor Paul Muad'dib on his ascension to the Lion Throne






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

end of thread, other threads:[~2009-04-18  2:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-18  1:52 bug#3037: 23.0.92; rcirc picks incorrect connection settings Chong Yidong
2009-04-18  2:30 ` Ryan Yeske
  -- strict thread matches above, loose matches on Subject: below --
2009-04-17 15:48 Yann Hodique

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.